/* Phieu bai tap in duoc (lib/cc/phieu-bai-tap.php + assets/cc/phieu-bai-tap.js). Trang A4 dung don vi mm de man hinh va ban in giong nhau. */
.pbt-ctl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pbt-step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--ink); }
.pbt-step span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 14px; }
.pbt-step:not(:first-child) { margin-top: 6px; }
.pbt-kinds .cc-chip { padding: 9px 14px; }
.pbt-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; }
.pbt-opt { display: grid; gap: 8px; align-content: start; }
.pbt-opt[hidden] { display: none; }
.pbt-lb { font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.pbt-lb small { font-weight: 500; }
.pbt-opt .cc-chip { padding: 7px 13px; font-size: 13.5px; }
.pbt-own { margin-top: 4px; }
.pbt-own[hidden] { display: none; }
.pbt-who { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pbt-check { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); padding: 10px 0; cursor: pointer; }
.pbt-check input { width: 20px; height: 20px; accent-color: var(--pri); }

/* khung xem truoc */
.pbt-out { margin-top: 18px; }
.pbt-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 10px 0; }
.pbt-info { font-weight: 700; color: var(--ink2); font-size: 14.5px; }
.pbt-acts { display: flex; gap: 8px; }
.pbt-view { overflow: hidden; background: linear-gradient(180deg, #E9E4DA, #DDD6C9); border-radius: 18px; padding: 14px 0; box-sizing: content-box; }
.pbt-pages { width: 210mm; margin: 0 auto; transform-origin: 0 0; }
.pbt-tip { margin-top: 10px; }

/* 1 trang A4 */
.pbt-page { width: 210mm; height: 297mm; box-sizing: border-box; padding: 12mm 12mm 15mm; margin: 0 auto 8mm; background: #fff; color: #1D2233; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 2mm 8mm rgba(40, 30, 10, .18); font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 12pt; line-height: 1.35; letter-spacing: 0; }
.pbt-page:last-child { margin-bottom: 0; }
.pbt-hd { border-bottom: .6mm solid #1D2233; padding-bottom: 3mm; margin-bottom: 3mm; }
.pbt-hd1 { display: flex; justify-content: space-between; align-items: center; font-size: 9pt; color: #5C5F7A; }
.pbt-brand b { color: #F08A00; }
.pbt-kick { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pbt-title { font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 19pt; line-height: 1.15; margin: 1.5mm 0 2.5mm; letter-spacing: 0; color: #1D2233; }
.pbt-meta { display: flex; flex-wrap: nowrap; gap: 5mm; align-items: flex-end; font-size: 11pt; white-space: nowrap; }
.pbt-meta > span { display: flex; align-items: flex-end; gap: 1.5mm; }
.pbt-meta .f1 { flex: 1 1 auto; } .pbt-meta .f2 { flex: 0 0 28mm; } .pbt-meta .f3 { flex: 0 0 34mm; }
.pbt-meta .dots { flex: 1; display: inline-block; border-bottom: .35mm dotted #777; height: 4mm; min-width: 10mm; }
.pbt-meta b { font-weight: 700; }
.pbt-score { flex: 0 0 auto; border: .4mm solid #1D2233; border-radius: 3mm; padding: 1mm 3mm; font-weight: 700; }
.pbt-score i { display: inline-block; width: 9mm; border-bottom: .35mm dotted #777; height: 4mm; }
.pbt-score.star { border-style: dashed; letter-spacing: .1em; }
.pbt-ins { font-weight: 700; font-size: 12pt; margin: 0 0 2mm; }
.pbt-body { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: 1fr; column-gap: 6mm; }

/* cau hoi */
.pbt-q { display: flex; align-items: center; gap: 2.5mm; min-width: 0; border-bottom: .2mm dashed #E3DED3; }
.pbt-q .no { flex: 0 0 auto; font-style: normal; display: inline-grid; place-items: center; min-width: 6.5mm; height: 6.5mm; padding: 0 1mm; border-radius: 3.25mm; background: #FFF1D6; color: #8A5300; font-size: 9pt; font-weight: 800; }
.pbt-q .ex { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.pbt-q .ln { flex: 1; min-width: 12mm; border-bottom: .35mm dotted #6B6F80; height: 1.1em; }
.l-cmp .pbt-q { justify-content: flex-start; }
.l-cmp .ex { flex: 1 1 0; text-align: center; }
.l-cmp .ex.r { text-align: right; }
.pbt-q .cir { flex: 0 0 auto; width: 9mm; height: 9mm; border: .4mm solid #1D2233; border-radius: 2mm; }
.l-x .pbt-q { align-items: flex-start; padding-top: 2mm; }
.l-x .xq > div { flex: 1; min-width: 0; }
.l-x .wk { display: flex; gap: 2mm; align-items: flex-end; margin-top: 2.5mm; font-size: .85em; color: #555; }
.l-col { column-gap: 3mm; }
.l-col .pbt-q { align-items: flex-start; padding-top: 2mm; border-bottom: 0; }
.dt { display: grid; grid-auto-rows: 7mm; font-size: 15pt; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 1mm; }
.dt span { display: grid; place-items: center; }
.dt .op { font-weight: 700; color: #5C5F7A; }
.dt .u { border-bottom: .45mm solid #1D2233; }
.dt .bx { border: .2mm dashed #B9B4A8; border-top: 0; margin: 0 .3mm; }
.l-tbl { grid-auto-rows: auto; align-content: start; row-gap: 5mm; column-gap: 4mm; }
.pbt-tb { border: .4mm solid #1D2233; border-radius: 3mm; overflow: hidden; }
.pbt-tb .th { background: #FFF1D6; font-family: 'Baloo 2', sans-serif; font-weight: 800; text-align: center; padding: 1mm; border-bottom: .4mm solid #1D2233; }
.pbt-tb .tr { display: flex; align-items: center; justify-content: center; gap: .5mm; height: 8.6mm; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.pbt-tb .tr:nth-child(odd) { background: #FBF8F2; }
.pbt-tb .bl { position: relative; display: inline-block; width: 10mm; height: 6.6mm; border: .3mm solid #1D2233; border-radius: 1.2mm; background: #fff; vertical-align: middle; }
.pbt-tb .bl sup { position: absolute; left: .4mm; top: -.2mm; font-size: 5.5pt; color: #B9B4A8; line-height: 1; }

/* tap to (o ly) */
.l-trace { grid-template-columns: 1fr; grid-auto-rows: auto; align-content: start; row-gap: .8mm; }
.pbt-tr { display: block; width: 186mm; height: 19.6mm; }
.pbt-tr line { stroke-width: .12; }
.pbt-tr .v { stroke: #E6ECF8; }
.pbt-tr .h { stroke: #D3DCF1; }
.pbt-tr .m { stroke: #8EA4D8; stroke-width: .28; }
.pbt-tr text { font-family: 'Mali', 'Be Vietnam Pro', sans-serif; font-weight: 500; }
.pbt-tr .gm { fill: #2B2D42; }
.pbt-tr .gt { fill: #C3C7D3; }
.pbt-tr .gd { fill: none; stroke: #7E8496; stroke-width: .28; stroke-dasharray: .9 .7; }
.l-empty { display: grid; place-items: center; }
.pbt-empty { color: #8A8FA3; font-size: 13pt; text-align: center; max-width: 120mm; }

/* dap an */
.l-ans { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 11mm; align-content: start; column-gap: 4mm; }
.pbt-a { display: flex; align-items: center; gap: 2.5mm; border-bottom: .2mm dashed #E3DED3; font-size: 13pt; }
.pbt-a .no { font-style: normal; display: inline-grid; place-items: center; min-width: 6.5mm; height: 6.5mm; border-radius: 3.25mm; background: #E8F5E9; color: #1B5E20; font-size: 9pt; font-weight: 800; }

/* chan phieu */
.pbt-foot { flex: 0 0 auto; display: flex; align-items: center; gap: 4mm; margin-top: 3mm; padding-top: 3mm; border-top: .3mm solid #E3DED3; font-size: 9.5pt; color: #3C4058; }
.pbt-qr { flex: 0 0 18mm; width: 18mm; height: 18mm; }
.pbt-qr svg { display: block; width: 100%; height: 100%; }
.pbt-ft { flex: 1; min-width: 0; line-height: 1.4; }
.pbt-ft b { color: #1D2233; }
.pbt-ft span { font-weight: 700; color: #0068FF; }
.pbt-ft small { display: block; font-size: 8pt; color: #7A7E92; }
.pbt-code { flex: 0 0 auto; font-size: 8pt; color: #9A9EB0; text-align: right; align-self: flex-end; white-space: nowrap; }

/* SEO */
.pbt-seo { margin-top: 44px; }
.pbt-seo p { color: var(--ink2); font-size: 16px; margin: 0 0 12px; }
.pbt-h3 { font-size: 19px; margin-bottom: 10px; }
.pbt-ol { margin: 0; padding-left: 22px; color: var(--ink2); font-size: 16px; display: grid; gap: 6px; }
.pbt-faq { display: grid; gap: 10px; }
.pbt-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.pbt-faq summary { font-weight: 700; cursor: pointer; }
.pbt-faq details p { margin: 8px 0 0; font-size: 15.5px; }

@media (max-width: 600px) {
  .pbt-bar { top: 64px; }
  .pbt-acts { width: 100%; }
  .pbt-acts .btn { flex: 1; }
  .pbt-view { padding: 8px 0; border-radius: 14px; }
  .pbt-opts { grid-template-columns: 1fr; }
}

@media print {
  .pbt-out { margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pbt-view { height: auto !important; overflow: visible !important; background: none !important; padding: 0 !important; border-radius: 0; }
  .pbt-pages { transform: none !important; width: auto !important; margin: 0 !important; }
  .pbt-page { width: auto; height: 270mm; padding: 0; margin: 0; box-shadow: none; }
  .pbt-page.cc-page-break { break-after: page; page-break-after: always; }
  .pbt-tr { width: 100%; height: auto; }
}
