/* Bản in hồ sơ và chứng nhận: chữ đen trên nền trắng, khổ A4 đứng */
@page { size: A4 portrait; margin: 16mm; }
* { box-sizing: border-box; }
body.ban-in { margin: 0; font-family: "Be Vietnam Pro", Arial, sans-serif; color: #000; background: #e9ecef; font-size: 11pt; line-height: 1.5; }
.thanh-in { display: flex; justify-content: space-between; max-width: 210mm; margin: 12px auto; }
.thanh-in a, .thanh-in button { font: inherit; padding: 8px 14px; border: 1px solid #999; background: #fff; border-radius: 4px; color: #000; text-decoration: none; cursor: pointer; }
.trang-a4 { width: 210mm; min-height: 297mm; margin: 0 auto 24px; background: #fff; padding: 18mm; }
.dau-in { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 18px; }
.dau-in .trien { width: 54px; height: 54px; color: #b4261c; display: inline-block; }
.dau-in b { display: block; font-size: 12pt; }
.dau-in span { font-size: 9.5pt; }
h1 { font-size: 18pt; margin: 0 0 12px; }
h2 { font-size: 12.5pt; margin: 18px 0 6px; }
.bang-in { width: 100%; border-collapse: collapse; }
.bang-in th, .bang-in td { border: 1px solid #555; padding: 5px 8px; text-align: left; vertical-align: top; }
.bang-in th { background: #f1f1f1; width: 28%; }
.ma { font-family: "JetBrains Mono", monospace; font-size: 9.5pt; }
.chan-in { margin-top: 26px; padding-top: 8px; border-top: 1px solid #000; font-size: 9.5pt; }
@media print {
  body.ban-in { background: #fff; }
  .thanh-in { display: none; }
  .trang-a4 { width: auto; min-height: 0; margin: 0; padding: 0; }
}

/* Chứng nhận khổ A4 ngang */
@page ngang { size: A4 landscape; margin: 10mm; }
.trang-a4.ngang { width: 297mm; min-height: 210mm; padding: 10mm; page: ngang; }
.vien-cn { position: relative; border: 3px double #1d3f78; min-height: 188mm; padding: 14mm 18mm; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.dau-cn-in { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 8mm; text-align: left; }
.dau-cn-in .trien { width: 64px; height: 64px; color: #b4261c; display: inline-block; }
.dau-cn-in b { display: block; font-size: 12pt; }
.dau-cn-in span { font-size: 9.5pt; }
.loai-cn { letter-spacing: 0.18em; font-weight: 700; color: #b4261c; margin: 0 0 6mm; }
.nho-cn { margin: 2mm 0; font-size: 11pt; }
.chung-nhan-in h1 { font-size: 26pt; margin: 2mm 0; color: #12284f; }
.chung-nhan-in h2 { font-size: 17pt; margin: 2mm 0; color: #1d3f78; }
.nang-luc-in { font-size: 9.5pt; max-width: 210mm; margin: 5mm auto 0; }
.chan-cn-in { display: flex; justify-content: center; gap: 16mm; margin-top: 10mm; padding-top: 5mm; border-top: 1px solid #999; }
.chan-cn-in span { display: block; font-size: 8.5pt; color: #444; }
.chan-cn-in b { font-size: 10pt; }
.da-thu-hoi-in { position: absolute; top: 40%; left: 0; right: 0; font-size: 46pt; font-weight: 800; color: rgba(180, 38, 28, 0.25); transform: rotate(-12deg); }
@media print { .trang-a4.ngang { width: auto; min-height: 0; padding: 0; } }
