/* ===== Trình tạo CV song ngữ nhiều mẫu: nhập 1 lần, ra 8 mẫu (05/11/2026) ===== */
.cvb-intro h3 { margin: 6px 0 4px; }
.cvb-intro p { margin: 0; font-size: 14px; }
.cvb { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 14px; }
.cvb-form { padding: 16px 16px 12px; }
.cvb-grp { border-bottom: 1px dashed #d5e1f2; padding-bottom: 8px; margin-bottom: 12px; }
.cvb-gt { font-weight: 800; color: var(--navy); font-size: 14.5px; margin-bottom: 8px; }
.cvb-form label { display: block; font-size: 12.5px; font-weight: 600; color: #334155; margin: 0 0 8px; }
.cvb-form input:not([type=file]):not([type=checkbox]), .cvb-form select, .cvb-form textarea { display: block; width: 100%; margin-top: 3px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); background: #F8FAFC; box-sizing: border-box; }
.cvb-form textarea { resize: vertical; line-height: 1.5; }
.cvb-form input:focus, .cvb-form select:focus, .cvb-form textarea:focus { outline: none; border-color: #0b6cf3; background: #fff; box-shadow: 0 0 0 3px rgba(11, 108, 243, .12); }
.cvb-form > .cvb-grp > select { margin: 0 0 8px; }
.cvb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.cvb-form label.cvb-chk { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.cvb-chk input { width: 16px; height: 16px; margin: 0; accent-color: #0b6cf3; }
.cvb-hint { font-size: 12px; color: var(--muted); margin: 0 0 6px; line-height: 1.45; }
.cvb-photo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cvb-form .cvb-photo label.btn { margin: 0; cursor: pointer; display: inline-flex; font-size: 13px; }
.cvb-photo img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.cvb-photo [hidden] { display: none !important; }
.cvb-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cvb-acts .cvb-hint { margin: 0; }
.cvb-main { min-width: 0; }
.cvb-gh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; color: var(--navy); font-size: 15px; }
.cvb-gh .muted { font-size: 13px; }
.cvb-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cvb-th { background: #fff; border: 2px solid #dbe5f3; border-radius: 10px; padding: 5px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; text-align: center; }
.cvb-th:hover { border-color: #93c5fd; transform: translateY(-2px); }
.cvb-th[aria-pressed="true"] { border-color: #0b6cf3; box-shadow: 0 0 0 3px rgba(11, 108, 243, .18); }
.cvb-th:focus-visible { outline: 2px solid #0b6cf3; outline-offset: 2px; }
.cvb-thf { display: block; position: relative; width: 100%; aspect-ratio: 794 / 1123; overflow: hidden; border-radius: 5px; background: #fff; border: 1px solid #eef2f7; pointer-events: none; }
.cvb-thi { display: block; position: absolute; left: 0; top: 0; width: 794px; transform-origin: 0 0; }
.cvb-thl { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-top: 5px; line-height: 1.25; }
.cvb-th[aria-pressed="true"] .cvb-thl { color: #0b6cf3; }
.cvb-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14.5px; color: var(--navy); }
.cvb-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cvb-stage { position: relative; width: 100%; min-height: 200px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(15, 37, 71, .12); }
.cvb-scale { position: absolute; left: 0; top: 0; width: 794px; transform-origin: 0 0; }
.cvb-main > .cvb-hint { margin-top: 8px; }
@media (max-width: 960px) { .cvb { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cvb-thumbs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .cvb-th { flex: 0 0 112px; scroll-snap-align: start; }
  .cvb-th:hover { transform: none; }
  .cvb-2 { grid-template-columns: 1fr; }
  .cvb-form input:not([type=file]):not([type=checkbox]), .cvb-form select, .cvb-form textarea { font-size: 16px; }
}

/* In / Lưu PDF: chỉ in đúng mẫu đang chọn, khổ A4 */
#cvPrintRoot { display: none; }
@media print {
  html:has(body.cv-printing) { zoom: 1 !important; }
  body.cv-printing { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body.cv-printing > *:not(#cvPrintRoot) { display: none !important; }
  body.cv-printing #cvPrintRoot { display: block !important; }
  #cvPrintRoot .cvt { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 0; }
}

/* ===== Phần chung của các mẫu CV (trang A4 794 x 1123 px) ===== */
.cvt { width: 794px; min-height: 1123px; background: #fff; color: #1e293b; font: 13px/1.55 Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; position: relative; overflow: hidden; text-align: left; letter-spacing: 0; box-sizing: border-box; }
.cvt *, .cvt *::before, .cvt *::after { box-sizing: border-box; }
.cvt p, .cvt ul, .cvt table { margin: 0; padding: 0; }
.cvt ul { list-style: none; }
.cvt img { max-width: none; }
.cvt .zh { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Noto Serif SC", sans-serif; }
.cvt .s-h { break-after: avoid; }
.cvt .x-item { margin: 0 0 9px; break-inside: avoid; }
.cvt .x-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cvt .x-pos { font-weight: 700; color: #0f172a; }
.cvt .x-time { font-size: 12px; color: #64748b; white-space: nowrap; font-weight: 600; }
.cvt .x-co { font-size: 12.5px; color: #475569; font-weight: 500; }
.cvt .x-item li, .cvt .sk li, .cvt .z-row li { position: relative; padding-left: 13px; margin-top: 2px; }
.cvt .x-item li::before, .cvt .sk li::before, .cvt .z-row li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
.cvt .sk li { margin-top: 4px; break-inside: avoid; }
.cvt .sk .zh { display: block; }
.cvt .sk .vi { display: block; color: #475569; font-size: 12.3px; }
.cvt .s-b > p.vi { color: #475569; margin-top: 3px; }
.cvt .ph { display: block; object-fit: cover; }
.cvt .av { display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* 1. Cổ điển */
.cvt-classic { padding: 46px 56px; counter-reset: cs; }
.cvt-classic .c-head { text-align: center; border-bottom: 2.5px solid #13285c; padding-bottom: 12px; margin-bottom: 4px; }
.cvt-classic .c-name { font-size: 28px; font-weight: 800; color: #13285c; line-height: 1.2; }
.cvt-classic .c-name .zh { font-size: 20px; font-weight: 700; color: #334155; }
.cvt-classic .c-title { font-size: 14.5px; font-weight: 600; color: #0b6cf3; margin-top: 4px; }
.cvt-classic .c-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 16px; font-size: 12.3px; color: #475569; margin-top: 6px; }
.cvt-classic .c-contact b { color: #13285c; }
.cvt-classic .s-h { counter-increment: cs; display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 800; color: #13285c; border-bottom: 1px solid #c7d6ee; padding-bottom: 3px; margin: 15px 0 7px; }
.cvt-classic .s-h .zh::before { content: counter(cs, simp-chinese-informal) "、"; }
.cvt-classic .s-h .vi { font-size: 12px; font-weight: 700; color: #0b6cf3; text-transform: uppercase; letter-spacing: .04em; }

/* 2. Hiện đại 2 cột */
.cvt-sidebar { display: grid; grid-template-columns: 262px 1fr; background: linear-gradient(90deg, #13285c 0 262px, #fff 262px); }
.cvt-sidebar .sb-side { padding: 38px 22px 30px; color: #dbe6f7; font-size: 12.3px; }
.cvt-sidebar .sb-ph { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 14px; border: 4px solid rgba(255, 255, 255, .22); }
.cvt-sidebar .av.sb-ph { background: #0b6cf3; color: #fff; font-size: 40px; }
.cvt-sidebar .sb-name { font-size: 21px; font-weight: 800; color: #fff; text-align: center; line-height: 1.25; }
.cvt-sidebar .sb-namezh { text-align: center; font-size: 15px; color: #bfdbfe; margin-top: 2px; }
.cvt-sidebar .sb-title { text-align: center; font-size: 12.3px; color: #93c5fd; margin: 8px 0 6px; line-height: 1.45; font-weight: 600; }
.cvt-sidebar .sb-side .s-h { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin: 18px 0 7px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 800; font-size: 13px; }
.cvt-sidebar .sb-side .s-h .vi { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #93c5fd; }
.cvt-sidebar .sb-ct { margin-bottom: 6px; word-break: break-word; color: #fff; }
.cvt-sidebar .sb-ct small { display: block; font-size: 10.5px; color: #93c5fd; }
.cvt-sidebar .sb-side .sk li { color: #e2e8f0; }
.cvt-sidebar .sb-main { padding: 40px 34px 30px; }
.cvt-sidebar .sb-main .s { margin-bottom: 16px; }
.cvt-sidebar .sb-main .s-h { display: flex; gap: 8px; align-items: baseline; font-size: 15px; font-weight: 800; color: #13285c; border-left: 4px solid #0b6cf3; padding-left: 9px; margin: 0 0 9px; line-height: 1.3; }
.cvt-sidebar .sb-main .s-h .vi { font-size: 11.5px; font-weight: 700; color: #0b6cf3; text-transform: uppercase; letter-spacing: .04em; }
.cvt-sidebar .x-time { color: #0b6cf3; }

/* 3. 中文简历 chuẩn Trung Quốc */
.cvt-zhstd { padding: 32px 44px; font-size: 12.6px; line-height: 1.5; }
.cvt-zhstd .z-title { text-align: center; margin-bottom: 6px; }
.cvt-zhstd .z-title .zh { font-family: "Noto Serif SC", "SimSun", serif; font-size: 28px; font-weight: 900; color: #13285c; letter-spacing: .35em; padding-left: .35em; }
.cvt-zhstd .z-title small { display: block; font-size: 11px; letter-spacing: .25em; color: #64748b; font-weight: 600; }
.cvt-zhstd .s-h { display: flex; gap: 8px; align-items: baseline; background: #e8f0fe; border-left: 5px solid #0b6cf3; padding: 4px 10px; margin: 10px 0 6px; font-size: 14.5px; font-weight: 800; color: #13285c; }
.cvt-zhstd .s-h .vi { font-size: 12px; color: #0b6cf3; font-weight: 700; }
.cvt-zhstd .s-h .vi::before { content: "| "; color: #94a3b8; }
.cvt-zhstd .z-tb { width: 100%; border-collapse: collapse; font-size: 12.8px; table-layout: fixed; }
.cvt-zhstd .z-tb th, .cvt-zhstd .z-tb td { border: 1px solid #c7d6ee; padding: 4px 8px; text-align: left; vertical-align: middle; word-break: break-word; }
.cvt-zhstd .z-tb th { width: 96px; background: #f5f8fd; color: #13285c; font-weight: 700; }
.cvt-zhstd .z-tb th small { display: block; font-size: 10.5px; font-weight: 500; color: #64748b; }
.cvt-zhstd .z-tb td.z-phc { width: 120px; padding: 6px; text-align: center; }
.cvt-zhstd .z-ph { width: 102px; height: 136px; margin: 0 auto; border-radius: 2px; }
.cvt-zhstd .av.z-ph { flex-direction: column; background: #f5f8fd; border: 1px dashed #c7d6ee; color: #94a3b8; font-size: 18px; font-weight: 700; }
.cvt-zhstd .av.z-ph small { font-size: 10.5px; font-weight: 500; margin-top: 2px; }
.cvt-zhstd .z-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 2px 0; break-inside: avoid; }
.cvt-zhstd .z-time { color: #0b6cf3; font-weight: 700; font-size: 12.3px; }
.cvt-zhstd .z-row b { color: #0f172a; }
.cvt-zhstd .z-row ul { margin-top: 2px; }

/* 4. Tối giản */
.cvt-minimal { padding: 60px 66px; color: #334155; }
.cvt-minimal .m-head { margin-bottom: 18px; }
.cvt-minimal .m-name { font-size: 36px; font-weight: 400; color: #0f172a; letter-spacing: -.01em; line-height: 1.1; }
.cvt-minimal .m-namezh { font-size: 17px; color: #64748b; margin-top: 4px; }
.cvt-minimal .m-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: #0b6cf3; font-weight: 600; margin-top: 12px; }
.cvt-minimal .m-titlezh { font-size: 13px; color: #475569; }
.cvt-minimal .m-contact { font-size: 12.3px; color: #64748b; margin-top: 10px; white-space: pre-wrap; }
.cvt-minimal .s { display: grid; grid-template-columns: 150px 1fr; gap: 18px; border-top: 1px solid #e2e8f0; padding: 13px 0; }
.cvt-minimal .s-h { display: flex; flex-direction: column; }
.cvt-minimal .s-h .zh { font-size: 13px; color: #0f172a; font-weight: 600; }
.cvt-minimal .s-h .vi { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-top: 2px; }
.cvt-minimal .x-pos { font-weight: 600; }

/* 5. Song ngữ đối chiếu */
.cvt-twocol { padding: 34px 44px; font-size: 12.6px; line-height: 1.5; }
.cvt-twocol .t-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.cvt-twocol .t-name { font-size: 27px; font-weight: 800; color: #13285c; line-height: 1.2; }
.cvt-twocol .t-name .zh { font-size: 19px; color: #475569; font-weight: 700; }
.cvt-twocol .t-title { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; color: #0b6cf3; margin-top: 4px; }
.cvt-twocol .t-contact { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12px; color: #475569; margin-top: 8px; }
.cvt-twocol .t-contact b { color: #13285c; font-weight: 700; }
.cvt-twocol .t-ph { width: 88px; height: 110px; border-radius: 8px; flex-shrink: 0; }
.cvt-twocol .av.t-ph { background: #e8f0fe; color: #0b6cf3; font-size: 30px; }
.cvt-twocol .t-langbar { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 0; border-radius: 6px; overflow: hidden; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cvt-twocol .t-langbar span { padding: 4px 10px; background: #13285c; color: #fff; }
.cvt-twocol .t-langbar span + span { background: #0b6cf3; }
.cvt-twocol .s-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: #f1f5f9; border-radius: 6px; padding: 4px 10px; margin: 10px 0 5px; font-weight: 800; color: #13285c; font-size: 13.5px; }
.cvt-twocol .s-h .vi { color: #0b6cf3; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.cvt-twocol .t-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 3px 0; border-bottom: 1px dashed #e2e8f0; break-inside: avoid; }
.cvt-twocol .t-pair p + p { border-left: 2px solid #dbeafe; padding-left: 14px; color: #334155; }
.cvt-twocol .t-pair.t-one { grid-template-columns: 1fr; }

/* 6. Chuyên nghiệp */
.cvt-exec .e-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 48px; background: linear-gradient(135deg, #0b2545 0%, #0b5cd6 100%); color: #fff; }
.cvt-exec .e-name { font-size: 30px; font-weight: 800; line-height: 1.15; }
.cvt-exec .e-namezh { font-size: 18px; color: #bfdbfe; margin-top: 2px; }
.cvt-exec .e-title { font-size: 13.5px; color: #dbeafe; margin-top: 8px; font-weight: 600; }
.cvt-exec .e-ph { width: 108px; height: 108px; border-radius: 14px; border: 3px solid rgba(255, 255, 255, .85); flex-shrink: 0; }
.cvt-exec .av.e-ph { background: rgba(255, 255, 255, .15); color: #fff; font-size: 34px; }
.cvt-exec .e-strip { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 9px 48px; background: #eef4ff; font-size: 12px; color: #334155; border-bottom: 1px solid #dbe6f7; }
.cvt-exec .e-strip b { color: #0b5cd6; margin-right: 4px; }
.cvt-exec .e-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; padding: 22px 48px 30px; }
.cvt-exec .s { margin-bottom: 16px; }
.cvt-exec .s-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14.5px; font-weight: 800; color: #0b2545; margin: 0 0 9px; padding-bottom: 4px; border-bottom: 2px solid #0b5cd6; }
.cvt-exec .s-h .vi { font-size: 11.5px; color: #0b5cd6; text-transform: uppercase; letter-spacing: .04em; }
.cvt-exec .tl .x-item { position: relative; padding-left: 18px; border-left: 2px solid #c7d6ee; margin-left: 5px; padding-bottom: 4px; }
.cvt-exec .tl .x-item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #0b5cd6; }
.cvt-exec .e-side { font-size: 12.5px; }
.cvt-exec .e-side .s-h { font-size: 13.5px; }

/* 7. ATS thuần chữ: không màu, không ảnh, phần mềm lọc hồ sơ đọc dễ */
.cvt-ats { padding: 50px 58px; font-family: Arial, Helvetica, "Microsoft YaHei", sans-serif; color: #000; font-size: 12.8px; }
.cvt-ats .zh { font-family: inherit; }
.cvt-ats .a-name { font-size: 22px; font-weight: 700; text-transform: uppercase; }
.cvt-ats .a-line { margin-top: 2px; }
.cvt-ats .s-h { display: flex; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #000; margin: 14px 0 6px; padding-bottom: 2px; font-size: 13px; }
.cvt-ats .s-h .vi { order: -1; }
.cvt-ats .s-h .vi::after { content: " / "; white-space: pre; }
.cvt-ats .x-pos, .cvt-ats .x-time, .cvt-ats .x-co, .cvt-ats .sk .vi, .cvt-ats .s-b > p.vi { color: #000; }
.cvt-ats .x-item li::before, .cvt-ats .sk li::before { content: "-"; width: auto; height: auto; background: none; border-radius: 0; top: 0; left: 0; opacity: 1; }

/* 8. Sáng tạo */
.cvt-creative { padding: 0 0 30px; }
.cvt-creative::before { content: ""; position: absolute; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: #ccfbf1; }
.cvt-creative::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(180deg, #0f766e, #0b6cf3); }
.cvt-creative .k-head { position: relative; display: flex; gap: 22px; align-items: center; padding: 42px 48px 22px 52px; }
.cvt-creative .k-ph { width: 112px; height: 112px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px #0f766e; flex-shrink: 0; }
.cvt-creative .av.k-ph { background: #0f766e; color: #fff; font-size: 36px; }
.cvt-creative .k-name { font-size: 30px; font-weight: 800; color: #0f172a; line-height: 1.15; }
.cvt-creative .k-namezh { font-size: 17px; color: #0f766e; font-weight: 700; }
.cvt-creative .k-chip { display: inline-block; margin-top: 8px; background: #0f766e; color: #fff; border-radius: 999px; padding: 4px 13px; font-size: 12.5px; font-weight: 600; }
.cvt-creative .k-contact { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12px; color: #475569; margin-top: 8px; }
.cvt-creative .k-contact span::before { content: "●"; color: #14b8a6; font-size: 8px; margin-right: 5px; vertical-align: 2px; }
.cvt-creative .k-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; padding: 6px 48px 0 52px; }
.cvt-creative .s { margin-bottom: 16px; }
.cvt-creative .s-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14.5px; font-weight: 800; color: #0f766e; margin-bottom: 8px; }
.cvt-creative .s-h::before { content: ""; width: 9px; height: 9px; background: #0b6cf3; border-radius: 2px; transform: rotate(45deg); }
.cvt-creative .s-h .vi { font-size: 11.5px; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.cvt-creative .x-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 11px; }
.cvt-creative .x-time { color: #0f766e; }
.cvt-creative .sk li { background: #f0fdfa; border-radius: 8px; padding: 5px 9px; margin-top: 5px; }
.cvt-creative .sk li::before { display: none; }
