/* Trả hàng sỉ — mục con Kho cạnh Chuyển kho (tra-si.js, 07/10/2026, migration 093). Cùng ngôn ngữ với Check hàng / Chuyển kho: một bề mặt bảng
   viền 1px bo 8px, tiêu đề cột chữ mờ trên --bg-card-hover, số căn phải tabular-nums; nút chính Apple Blue (--theme-accent-strong). Không card lồng card.
   Điện thoại ≤760px: bảng → danh sách một bề mặt, không kéo ngang; thanh Huỷ / Lưu dính đáy (trên tab đáy). Ô bấm ≥ 44px, focus rõ, bo ≤ 8px. */
.ts { color: var(--text-main); }
.ts-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ts-dau { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 12px; }
.ts-dau > div:first-child { min-width: 0; }
.ts-h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ts-h3 { margin: 20px 0 8px; font-size: 16px; }
.ts-tom { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ts-tom strong { color: var(--text-main); }
.ts-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ts-ic { flex: none; }
.ts .ts-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ts .ts-btn:hover:not(:disabled) { border-color: var(--theme-accent-strong); }
.ts .ts-btn:disabled { opacity: .55; cursor: not-allowed; }
.ts .ts-btn.ts-icon { width: 44px; padding: 0; }
.ts .ts-btn.ts-nho { min-height: 40px; padding: 0 12px; font-size: 13px; }
.ts .ts-btn.ts-chinh { background: var(--theme-accent-strong, #0071e3); border-color: var(--theme-accent-strong, #0071e3); color: #fff; }
html[data-itn-theme="graphite"] .ts .ts-btn.ts-chinh, html[data-itn-theme="gold-noir"] .ts .ts-btn.ts-chinh { color: #111; }
.ts .ts-btn.ts-nguy { color: var(--txt-bad, var(--theme-danger)); }
.ts .ts-btn.ts-nguy:hover:not(:disabled) { border-color: var(--txt-bad, var(--theme-danger)); }
.ts-btn.ts-nguy-day { background: var(--theme-danger, #c62828); border-color: var(--theme-danger, #c62828); color: #fff; }
.ts .ts-btn:focus-visible, .ts-seg button:focus-visible, .ts-tabs button:focus-visible, .ts-link:focus-visible, .ts-muc:focus-visible, .ts-lui:focus-visible, .ts input:focus-visible, .ts select:focus-visible, .ts textarea:focus-visible, .ts tr[data-ts-mo]:focus-visible { outline: 2px solid var(--theme-accent-strong); outline-offset: 2px; }
.ts-seg { display: inline-flex; padding: 2px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-input); }
.ts .ts-seg > button[type] { min-height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ts .ts-seg > button[type][aria-pressed="true"] { background: var(--bg-card); color: var(--text-main); box-shadow: 0 0 0 1px var(--border-color); }
.ts-tabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; }
.ts .ts-tabs > button[type] { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ts .ts-tabs > button[type][aria-selected="true"] { color: var(--text-main); border-bottom-color: var(--theme-accent-strong); }
.ts-loc { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 12px; }
.ts-o { display: grid; gap: 4px; font-size: 13px; color: var(--text-muted); min-width: 0; }
.ts-o > span:first-child { font-weight: 600; }
.ts-o input, .ts-o select, .ts-o textarea { min-height: 44px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-input); color: var(--text-main); font: inherit; font-size: 15px; width: 100%; box-sizing: border-box; }
.ts-o textarea { min-height: 64px; resize: vertical; }
.ts-o input[aria-invalid="true"], .ts-o select[aria-invalid="true"], .ts-o textarea[aria-invalid="true"] { border-color: var(--txt-bad, var(--theme-danger)); }
.ts-o small { color: var(--text-muted); font-size: 12px; }
.ts-o-tim { flex: 1 1 260px; }
.ts-o-tinh strong { color: var(--text-main); font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.ts-o-rong { grid-column: 1 / -1; }
.ts-o-gia input { text-align: right; font-variant-numeric: tabular-nums; }
.ts-loi { color: var(--txt-bad, var(--theme-danger)); font-size: 13px; font-weight: 600; }
.ts-loi-to { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--txt-bad, var(--theme-danger)); border-radius: 8px; }
.ts-xong { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border-color); border-left: 3px solid var(--txt-ok); border-radius: 8px; background: var(--bg-card); font-size: 14px; }
html body .ts button.ts-link { min-height: 32px; min-width: 0; box-shadow: none; border-radius: 4px; padding: 0; border: 0; background: none; color: var(--theme-accent-strong); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
html body .ts button.ts-link.ts-nho-c { font-size: 12px; min-height: 24px; }
html body .ts button.ts-lui { display: inline-flex; box-shadow: none; min-width: 0; align-items: center; gap: 4px; min-height: 36px; margin: 0 0 4px -4px; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: var(--theme-accent-strong); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ts-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid currentColor; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text-muted); }
.ts-chip.is-ok { color: var(--txt-ok); } .ts-chip.is-warn { color: var(--txt-warn); } .ts-chip.is-bad { color: var(--txt-bad, var(--theme-danger)); }
.ts-cho { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-cho.is-lau { color: var(--txt-warn); }
.ts-imei { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ts-imei strong { color: var(--text-main); }
.ts-so-nho { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Bảng máy tính / tablet: một bề mặt. */
.ts-wrap { border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); overflow: hidden; }
.ts-bang { width: 100%; border-collapse: collapse; font-size: 14px; }
.ts-bang th, .ts-bang td { padding: 8px 12px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: middle; }
.ts-bang tbody tr:last-child td { border-bottom: 0; }
.ts-bang thead th { height: 40px; padding: 0 12px; color: var(--text-muted); background: var(--bg-card-hover); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ts-bang .so { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-bang small { color: var(--text-muted); font-size: 12px; }
.ts-bang tr[data-ts-mo] { cursor: pointer; }
.ts-bang tr[data-ts-mo]:hover { background: var(--bg-card-hover); }
.ts-c-nut { text-align: right; white-space: nowrap; }
.ts-wrap-gon { max-width: 760px; }
.ts-ds { display: none; }
.ts-trong { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); text-align: center; color: var(--text-muted); }
.ts-trong-t { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-main); }
.ts-trong-h { margin: 0; font-size: 14px; line-height: 1.45; max-width: 520px; }
.ts-trong.is-loi .ts-ic { color: var(--txt-bad); }
.ts-giua { display: flex; justify-content: center; margin-top: 12px; }
.ts-cho-tai { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.ts-sk { display: block; height: 20px; border-radius: 6px; background: var(--bg-input); animation: ts-nhip 1.4s ease-in-out infinite; }
@keyframes ts-nhip { 50% { opacity: .5; } }

/* Form lập phiếu / nhận đổi: nhóm theo bước, đường kẻ phân tách (không thẻ lồng thẻ). */
.ts-form { padding-bottom: 8px; }
.ts-nhom { padding: 16px 0; border-top: 1px solid var(--border-color); }
.ts-nhom h3 { margin: 0 0 10px; font-size: 15px; }
.ts-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ts-goi-y { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-muted); }
.ts-tim { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ts-tim .ts-o-tim { max-width: 360px; }
.ts-tim-kq, .ts-lap-ds { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.ts-tim-kq > li, .ts-lap-ds > li { border-bottom: 1px solid var(--border-color); }
.ts-tim-kq > li:last-child, .ts-lap-ds > li:last-child { border-bottom: 0; }
.ts-lap-dong { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.ts-lap-dong.is-loi { background: color-mix(in srgb, var(--txt-bad, #c62828) 6%, transparent); }
.ts-lap-dong .ts-muc-b { flex: 1 1 auto; }
.ts-lap-dong .ts-o-gia { width: 180px; flex: none; }
html body .ts button.ts-muc, .ts .ts-muc { display: flex; box-shadow: none; border-radius: 0; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; background: none; color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.ts-muc.is-khong { cursor: default; }
.ts-muc-b { display: grid; gap: 2px; min-width: 0; }
.ts-muc-t { font-weight: 600; overflow-wrap: anywhere; }
.ts-muc-p { font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.ts-muc-r { display: grid; justify-items: end; gap: 4px; flex: none; font-variant-numeric: tabular-nums; color: var(--theme-accent-strong); font-weight: 600; }
.ts-muc-r strong { color: var(--text-main); }
.ts-chon { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.ts label.ts-radio { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); cursor: pointer; }
.ts-radio:has(input:checked) { border-color: var(--theme-accent-strong); background: var(--theme-accent-soft); }
.ts-radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--theme-accent-strong); flex: none; }
.ts-radio span { display: grid; gap: 2px; }
.ts-radio small { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.ts-radio-gon { align-items: center; }
.ts label.ts-check, .ts-tru label.ts-check { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.ts-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--theme-accent-strong); }
.ts-ma { margin-top: 12px; }
.ts-ma summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--theme-accent-strong); font-weight: 600; font-size: 14px; }
.ts-chenh { margin: 0 0 8px; font-size: 15px; }
.ts-thanh { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; padding: 12px 0; border-top: 1px solid var(--border-color); background: var(--bg-app); }
.ts-tong { margin-right: auto; font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ts-tong strong { color: var(--text-main); font-size: 16px; }

/* Chọn nhiều máy (07/10/2026 "chọn đc nhiều imei"): quét / dán nhiều mã hoặc tick từ tồn kho — cùng ngôn ngữ với Chuyển kho nhiều máy. */
.ts-goi-y-box { display: contents; }
.ts-seg-may { margin: 0 0 12px; }
.ts-tim textarea { min-height: 88px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ts-tim .ts-o-tim { max-width: 440px; }
.ts-kq { margin: 12px 0 0; }
.ts-kq-dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ts-kq-dau strong { color: var(--text-main); }
.ts-kq-ds { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); max-height: min(40vh, 360px); overflow: auto; }
.ts-kq-dong { display: flex; align-items: center; gap: 8px 12px; min-height: 48px; padding: 4px 4px 4px 12px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.ts-kq-dong:last-child { border-bottom: 0; }
.ts-kq-dong.is-dang { color: var(--text-muted); padding-right: 12px; }
.ts-kq-dong.is-loi { background: color-mix(in srgb, var(--txt-bad, #c62828) 6%, transparent); }
.ts-kq-dong.is-chon { background: color-mix(in srgb, var(--txt-warn, #b26a00) 8%, transparent); align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.ts-kq-than { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; flex: 1 1 auto; min-width: 0; }
.ts-kq-ma { font-weight: 600; min-width: 9ch; }
.ts-kq-ly { color: var(--text-muted); }
.ts-kq-chon { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; margin-top: 6px; }
.ts .ts-btn.ts-kq-may { flex-direction: column; align-items: flex-start; gap: 0; height: auto; padding: 6px 12px; white-space: normal; text-align: left; font-weight: 600; }
.ts-kq-may .ts-imei { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.ts-may-cu { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin-top: 10px; }
.ts-dem { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ts-may-cu .ts-loat { margin: 0; flex: 1 1 auto; }
.ts-may-cu .ts-loat summary { min-height: 44px; }
.ts-loat-o { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 4px; }
.ts-loat-o .ts-o-gia { width: 240px; }
.ts-bo-xn { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ts-ton { display: grid; gap: 10px; }
.ts-loc-ton { margin-bottom: 0; }
.ts-ton-ncc { flex: 0 1 280px; min-width: 0; }
.ts-ton-dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.ts-ton-dau .ts-tom { margin: 0; }
.ts-ton-ds { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); max-height: min(60vh, 560px); overflow: auto; overscroll-behavior: contain; }
.ts-ton-ds > li { border-bottom: 1px solid var(--border-color); }
.ts-ton-ds > li:last-child { border-bottom: 0; }
.ts label.ts-ton-dong { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; margin: 0; cursor: pointer; color: var(--text-main); }
.ts-ton-dong:has(input:checked:not(:disabled)) { background: var(--theme-accent-soft); }
.ts label.ts-ton-dong.is-khoa { cursor: default; opacity: .7; }
.ts-ton-dong input, .ts-tick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--theme-accent-strong); }
.ts-ton-dong .ts-muc-b { flex: 1 1 auto; }
.ts-ton-chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ts-ton-dem { margin-right: auto; font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ts-ton-dem strong { color: var(--text-main); font-size: 16px; }
/* Đang gửi đổi: tick nhiều máy cùng phiếu → Nhận cùng IMEI. */
.ts label.ts-tick { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -8px 0; cursor: pointer; }
.ts label.ts-tick:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.ts-c-tick { width: 52px; padding-right: 0 !important; }
.ts-bang tr.is-chon, .ts-ds > li.is-chon { background: var(--theme-accent-soft); }
.ts-doi-goi-y { margin: 0 0 10px; }
.ts-muc-doi-dau { display: flex; align-items: flex-start; gap: 4px; }
.ts-muc-doi-dau .ts .ts-tick, .ts .ts-muc-doi-dau label.ts-tick { flex: none; width: 44px; margin: -10px 0 0 -10px; }
.ts-muc-doi-dau .ts-muc-b { flex: 1 1 auto; }
.ts-doi-thanh { margin-top: 12px; }
.ts .ts-doi-thanh label.ts-o-nho { flex: 0 0 auto; width: 180px; }
.ts-o-nho select { min-width: 150px; }

/* Chi tiết phiếu */
.ts-tt { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.ts-tt > div { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.ts-tt dt { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.ts-tt dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.ts-tien { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.ts-tien li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.ts-tien li:last-child { border-bottom: 0; }
.ts-tien + .ts-tien { margin-top: 8px; }
.ts-tien small { color: var(--text-muted); font-size: 12px; }
.ts-tien .so { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ts-nk { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border-color); }
.ts-nk li { position: relative; display: grid; gap: 2px; padding: 0 0 12px 8px; font-size: 14px; }
.ts-nk li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--theme-accent-strong); background: var(--bg-app); }
.ts-nk-g { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ts-nk-c { color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }

/* Khối "Trừ phiếu trả sỉ" trong form Nhập hàng */
.ts-tru { grid-column: 1 / -1; margin: 8px 0 0; padding: 12px; border: 1px solid var(--theme-accent-strong); border-radius: 8px; background: var(--theme-accent-soft); }
.ts-tru legend { padding: 0 4px; font-weight: 700; }
.ts-tru-dong { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding: 6px 0; }
.ts-tru-dong .ts-o-gia { width: 180px; }
.ts-tru-tong { margin: 8px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Hộp hỏi huỷ */
.ts-nen { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.35); }
.ts-hoi { position: fixed; z-index: 131; left: 50%; top: 18vh; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ts-hoi h3 { margin: 0 0 8px; font-size: 17px; }
.ts-hoi p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.ts-hoi .ts-o textarea, .ts-hoi .ts-o { width: 100%; }
.ts-hoi-nut { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ts-hoi-nut .ts-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ts-hoi-nut .ts-btn.ts-nguy-day { background: var(--theme-danger, #c62828); border-color: var(--theme-danger, #c62828); color: #fff; }

@media (max-width: 1100px) { .ts-c-phu { display: none; } }
/* Điện thoại: danh sách một bề mặt, không bảng, không kéo ngang. */
@media (max-width: 760px) {
  /* Ô bấm 44px trên điện thoại (13/10/2026, đo 390px): công tắc chi nhánh / cách chọn máy (.ts-seg 40px), nút nhỏ "Nhận hàng đổi lỗi"
     / "Huỷ nhận" (.ts-nho 40px), nút quay lại (.ts-lui 36px), nút chữ "Xoá các mã lỗi" / NCC gợi ý (.ts-link 32px). Cùng độ ưu tiên
     với quy tắc gốc phía trên, đứng sau nên thắng — không cần !important. Máy tính giữ cỡ gọn như cũ. */
  .ts .ts-seg > button[type] { min-height: 44px; }
  .ts .ts-btn.ts-nho { min-height: 44px; }
  html body .ts button.ts-lui { min-height: 44px; }
  html body .ts button.ts-link { min-height: 44px; }
  .ts-dau { align-items: stretch; }
  .ts-tool { width: 100%; }
  .ts-tool .ts-seg { flex: 1 1 100%; }
  .ts .ts-tool .ts-seg > button[type] { flex: 1 1 0; }
  .ts-tool .ts-btn.ts-chinh { flex: 1 1 auto; }
  .ts-ct .ts-tool .ts-btn { flex: 1 1 auto; }
  .ts-wrap { display: none; }
  .ts-ds { display: block; list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
  .ts-ds > li { border-bottom: 1px solid var(--border-color); }
  .ts-ds > li:last-child { border-bottom: 0; }
  .ts-muc-doi { display: grid; gap: 8px; padding: 10px 12px; }
  .ts-muc-doi .ts-btn { width: 100%; }
  .ts-lap-dong { flex-wrap: wrap; }
  .ts-lap-dong .ts-o-gia { flex: 1 1 auto; width: auto; }
  .ts-tim .ts-o-tim { max-width: none; }
  .ts-thanh { bottom: calc(var(--itn-tab-day-cao, 64px) + env(safe-area-inset-bottom, 0px)); padding: 10px 0; }
  .ts-tong { flex: 1 1 100%; }
  .ts-thanh .ts-btn { flex: 1 1 0; }
  .ts-tt { grid-template-columns: 1fr 1fr; }
  .ts-tru-dong .ts-o-gia { width: 100%; }
  .ts-seg-may { display: flex; }
  .ts .ts-seg-may > button[type] { flex: 1 1 0; padding: 0 8px; }
  .ts-tim > .ts-btn { flex: 1 1 100%; }
  .ts-ton-ncc { flex: 1 1 100%; }
  .ts-ton-chan .ts-btn { flex: 1 1 auto; }
  .ts-ton-dem { flex: 1 1 100%; }
  .ts-loat-o .ts-o-gia { width: 100%; }
  .ts-loat-o .ts-btn { flex: 1 1 0; }
  .ts-may-cu .ts-loat { flex: 1 1 100%; order: 3; }
  .ts-bo-xn, .ts-bo-xn .ts-btn { flex: 1 1 auto; }
  .ts .ts-doi-thanh label.ts-o-nho { flex: 1 1 100%; width: auto; }
  .ts-doi-thanh .ts-o-nho select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ts-sk { animation: none; } }
