/* ============================================================
   QA/QC – HỒ SƠ ĐỒNG BỘ
   ============================================================ */
.qaqc-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.qaqc-flow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--muted);
  margin-left: auto;
  flex-wrap: wrap;
}
.qaqc-flow span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 9px;
  white-space: nowrap;
}
.qaqc-flow i { color: var(--muted-2); font-style: normal; }

.doc-pills { display: flex; gap: 3px; flex-wrap: wrap; }
.doc-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}
.doc-pill.done { background: var(--green-soft); color: #047857; border-color: #d1fae5; }

.dossier-detail { font-size: 12.5px; }
.dossier-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #fbfcff, #fff);
}
.dh-title { font-size: 16px; font-weight: 750; letter-spacing: -.01em; line-height: 1.35; }
.dh-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dh-right { margin-left: auto; text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.dh-progress { font-size: 10.5px; color: var(--muted); }
.dh-progress b { font-size: 17px; color: var(--ink); margin-right: 3px; }
.dossier-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 14px;
}
.dm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.dm-row:last-child { border-bottom: 0; }
.dm-row span { color: var(--muted); }
.dm-row b { font-weight: 650; text-align: right; }
.dossier-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dossier-number-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--green-soft);
  border: 1px solid #d1fae5;
  color: #065f46;
  font-size: 11.8px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.dossier-number-note.warn { background: var(--brand-soft); border-color: #fde68a; color: #92400e; }
.dossier-number-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.doc-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: var(--surface);
}
.doc-card.done { border-color: #bbf7d0; background: #f7fefb; }
.doc-card-top { display: flex; align-items: flex-start; gap: 8px; }
.doc-card-top > div { min-width: 0; flex: 1; }
.doc-card-top b { display: block; font-size: 11px; letter-spacing: .04em; color: var(--brand-dark); }
.doc-card-top span:not(.chip):not(.doc-step) { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.35; margin-top: 1px; }
.doc-step {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700;
}
.doc-card-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 5px 7px;
  margin: 9px 0 8px;
  word-break: break-all;
}
.doc-card-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.doc-card-actions .btn { padding: 5px 7px; font-size: 10.5px; }
.doc-card-actions .btn svg { width: 12px; height: 12px; }

.checklist-wrap { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.checklist-table { font-size: 11.5px; min-width: 760px; }
.checklist-table th { font-size: 9.5px; padding: 8px 8px; }
.checklist-table td { padding: 6px 8px; }
.mini-select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  padding: 3px 2px;
  max-width: 78px;
}
.mini-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  padding: 4px 6px;
  width: 100%;
  min-width: 90px;
}
.dossier-conclusion {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.dossier-conclusion .field { flex: 1; }
.doc-legend-inline {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.6;
}
.doc-legend-inline b { color: var(--ink-2); }

.drawing-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; margin-bottom: 14px; }
.drawing-head { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.drawing-head > div { flex: 1; min-width: 0; }
.drawing-head b { display: block; font-size: 12px; }
.drawing-head span { display: block; font-size: 10.8px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.drawing-empty { padding: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }
.drawing-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 13px; border-bottom: 1px dashed var(--line); }
.drawing-row:last-child { border-bottom: 0; }
.drawing-file-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.drawing-file-icon svg { width: 16px; height: 16px; }
.drawing-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.drawing-main > b { font-size: 12px; line-height: 1.35; word-break: break-word; }
.drawing-meta { font-size: 10.5px; color: var(--muted); }
.drawing-note { border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 11px; padding: 4px 7px; width: 100%; margin-top: 2px; }
.drawing-note:focus { border-color: var(--brand); outline: none; }
.drawing-actions { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; max-width: 230px; }
.drawing-include { font-size: 10.8px; color: var(--ink-2); white-space: nowrap; }
.drawing-actions .btn { padding: 5px 7px; font-size: 10.5px; }
.drawing-actions .btn svg { width: 12px; height: 12px; }
.drawing-source { display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; font-weight: 700; }
.drawing-source.lib { background: var(--violet-soft); color: var(--violet); }
.drawing-source.own { background: var(--amber-soft); color: var(--amber); }
.lib-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 13px; }
.lib-grid .field { margin: 0; }
.lib-filter { margin-top: 12px; }
@media (max-width: 900px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .lib-grid { grid-template-columns: 1fr; } }

.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.book-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.book-head b { display: block; font-size: 12.5px; }
.book-head span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.book-next { margin-left: auto; text-align: right; }
.book-next span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; }
.book-next b { font-size: 20px; color: var(--brand-dark); }
.book-card .tbl { font-size: 11.5px; }
.book-card .tbl th, .book-card .tbl td { padding: 7px 10px; }
.book-set { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line-2); }
.book-set label { font-size: 10.5px; color: var(--muted); }
.book-set input { width: 68px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; font-size: 12px; }

.scan-status {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 9px 11px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  word-break: break-all;
}
.scan-status b { color: var(--ink-2); }
.ai-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd6fe;
  background: #faf5ff;
  border-radius: 9px;
  padding: 10px 11px;
}
.ai-box > div { flex: 1; }
.ai-box b { display: block; font-size: 12px; color: #5b21b6; }
.ai-box span { display: block; font-size: 10.5px; color: #7c3aed; margin-top: 2px; }
.scan-warning:empty { display: none; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.check-line input { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .doc-flow, .book-grid, .dossier-meta { grid-template-columns: 1fr; }
  .qaqc-flow { margin-left: 0; width: 100%; }
}
@media (max-width: 620px) {
  .dossier-hero { flex-direction: column; }
  .dh-right { flex-direction: row; align-items: center; }
  .dossier-actions .btn { flex: 1 1 auto; }
  .drawing-head { flex-direction: column; align-items: flex-start; }
  .drawing-row { flex-wrap: wrap; }
  .drawing-actions { max-width: none; width: 100%; justify-content: flex-start; padding-left: 40px; }
}

/* Bản in biểu mẫu thật – toàn bộ QA/QC khổ dọc A4 */
@page { size: A4 portrait; margin: 0; }
@page doc-portrait { size: A4 portrait; margin: 0; }
@page doc-landscape { size: A4 landscape; margin: 0; }

@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff; }
  #print-area { margin: 0 !important; padding: 0 !important; }
  .print-page {
    width: 210mm;
    max-width: 210mm;
    padding: 9mm 12mm 8mm;
    box-sizing: border-box;
    page-break-after: always;
    break-after: page;
    font-family: "Times New Roman", Times, serif;
    font-size: 11pt;
    line-height: 1.28;
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-page:last-child { page-break-after: auto; break-after: auto; }
  .print-page.doc-portrait { page: doc-portrait; }
  .print-page.doc-landscape { page: doc-landscape; width: 297mm; max-width: 297mm; padding: 8mm 10mm; }
  .print-page table { max-width: 100%; table-layout: fixed; }
  .print-page th, .print-page td { overflow-wrap: break-word; word-break: break-word; }
  .print-page thead { display: table-header-group; }
  .print-page tr, .print-page .doc-sign-block { page-break-inside: avoid; break-inside: avoid; }

  /* Đầu trang quốc hiệu, tiêu đề, mã số */
  .doc-nation { text-align: center; }
  .doc-nation-left { font-size: 11.4pt; line-height: 1.25; }
  .doc-nation-left b { font-size: 12.2pt; }
  .doc-nation-o { font-size: 9pt; letter-spacing: 0.5px; }
  .doc-date { font-size: 11pt; font-style: italic; }
  .doc-date-right { text-align: right; margin: 1.5mm 0 2.5mm; }
  .doc-main-title { text-align: center; text-transform: uppercase; font-size: 14pt; margin: 2mm 0 0; line-height: 1.22; }
  .doc-code { text-align: center; font-size: 11pt; margin: 0.6mm 0 3mm; }
  .doc-code-cv { font-weight: 700; }

  /* Khối thông tin công trình */
  .doc-info { width: 100%; border-collapse: collapse; margin: 0 0 2mm; font-size: 10.8pt; line-height: 1.38; }
  .doc-info th, .doc-info td { border: 0; padding: 0; vertical-align: top; text-align: left; }
  .doc-info th { width: 28mm; font-weight: 700; color: #000; white-space: nowrap; }
  .doc-info td::before { content: ": "; }
  .doc-kinh { margin: 1.5mm 0 0; font-size: 11.2pt; }
  .doc-kinh u { text-decoration: underline; text-underline-offset: 1px; }
  .doc-recipients { margin: 0.5mm 0 2mm 8mm; font-size: 11.2pt; line-height: 1.38; }
  .doc-recipients > div { margin-left: 4mm; }

  /* Nội dung văn bản */
  .doc-section { margin: 2mm 0; font-size: 11pt; line-height: 1.32; }
  .doc-subline { margin-left: 9mm; }
  .doc-tight { margin: 1.5mm 0 1mm; }
  .doc-contractor-line { margin: 1mm 0; font-size: 11.2pt; }
  .doc-party-line { margin: 0.8mm 0 0; font-size: 10.8pt; }
  .doc-person { display: flex; margin-left: 9mm; font-size: 10.8pt; line-height: 1.26; }
  .doc-person > span:first-child { min-width: 68mm; }
  .doc-legal-line { font-size: 10.8pt; line-height: 1.3; }
  .doc-check { display: inline-block; min-width: 22mm; margin-left: 10mm; }
  .doc-plus-line { margin-left: 9mm; font-size: 10.5pt; line-height: 1.28; }
  .doc-list { margin: 0 0 1mm 9mm; padding: 0; font-size: 10.8pt; line-height: 1.28; list-style: none; }
  .doc-list li::before { content: "- "; }
  .doc-note-lines { margin: 0 0 2mm; }
  .doc-dots { border-bottom: 1px dotted #444; height: 5mm; margin-left: 9mm; }
  .doc-dots-text { display: flex; align-items: flex-end; justify-content: center; }
  .doc-dots-text i { font-size: 10.6pt; padding: 0 6mm 0.4mm; background: #fff; }
  .doc-conclusion { margin: 1mm 0 2mm; font-size: 11pt; }
  .doc-conclusion-block { margin-top: 3mm; }
  .doc-conclusion-text { margin: 1mm 0 0 30mm; }

  /* Khối chữ ký */
  .doc-sign-right { text-align: center; width: 70mm; margin: 7mm 8mm 0 auto; page-break-inside: avoid; }
  .doc-sign-title { font-weight: 700; text-transform: uppercase; font-size: 11pt; }
  .doc-sign-space { height: 24mm; }
  .doc-sign-name { font-weight: 700; font-size: 11pt; }
  .doc-sign-heading { margin: 2.5mm 0 1mm; }
  .doc-sign-block { page-break-inside: avoid; break-inside: avoid; }
  .doc-sign-table { width: 100%; border-collapse: collapse; page-break-inside: avoid; }
  .doc-sign-table th, .doc-sign-table td { border: 1px solid #000; padding: 1mm 1.5mm; font-size: 9.6pt; text-align: center; vertical-align: middle; }
  .doc-sign-table .doc-sign-head th { background: transparent; font-size: 9.6pt; font-weight: 700; }
  .doc-sign-table .doc-sign-tall td { height: 24mm; }
  .doc-sign-table .b { font-weight: 700; }

  /* Bảng dữ liệu */
  .doc-table { width: 100%; border-collapse: collapse; margin: 1mm 0 2mm; font-size: 9.6pt; }
  .doc-table th, .doc-table td { border: 1px solid #000; padding: 1mm 1.5mm; vertical-align: middle; }
  .doc-table th { font-weight: 700; text-align: center; font-size: 9.2pt; }
  .doc-table .doc-center { text-align: center; }
  .doc-table .doc-right { text-align: right; }
  .doc-table .mark { font-size: 11pt; line-height: 1; }
  .doc-table .note { font-size: 8.8pt; }
  .doc-quality th { background: #e2efd9; }
  .doc-quality td:nth-child(2) { text-align: left; }
  .doc-note-row td { font-size: 8.8pt; font-style: italic; padding: 0.8mm 1.5mm; }
  .doc-group-row td { background: #e2efd9; font-weight: 700; }

  /* Biên bản nghiệm thu công việc – gọn 2 trang như mẫu */
  .print-page.doc-bbnt { font-size: 10.4pt; }
  .doc-bbnt .doc-info { font-size: 10.6pt; line-height: 1.3; }
  .doc-bbnt .doc-section { margin: 1.3mm 0; font-size: 10.4pt; line-height: 1.24; }
  .doc-bbnt .doc-party-line { margin: 0.4mm 0 0; font-size: 10.2pt; }
  .doc-bbnt .doc-person { font-size: 10.2pt; line-height: 1.16; }
  .doc-bbnt .doc-legal-line { font-size: 10.1pt; line-height: 1.22; }
  .doc-bbnt .doc-plus-line { font-size: 10pt; line-height: 1.2; }
  .doc-bbnt .doc-table { font-size: 9.2pt; }

  /* Biên bản nghiệm thu vật liệu (VLĐV) */
  .print-page.doc-bbnt-vt { font-size: 10.2pt; }
  .doc-bbnt-vt .doc-main-title { font-size: 13.2pt; line-height: 1.2; margin-top: 1mm; }
  .doc-bbnt-vt .doc-section { margin: 1.2mm 0; font-size: 10.2pt; line-height: 1.24; }
  .doc-bbnt-vt .doc-legal-line { font-size: 10pt; line-height: 1.2; }
  .doc-bbnt-vt .doc-party-block { margin: 0; }
  .doc-bbnt-vt .doc-conclusion-block { margin-top: 2mm; }
  .doc-bbnt-vt .doc-conclusion-text { margin: 1mm 0 0 30mm; }
  .doc-bbnt-vt .doc-note-lines { margin: 0 0 1mm; }
  .doc-bbnt-vt .doc-dots { height: 4mm; }
  .doc-bbnt-vt .doc-sign-tall td { height: 21mm; }

  /* Biên bản kiểm tra lắp đặt */
  .doc-ntld { font-size: 8.2pt; line-height: 1.16; padding: 6mm 8mm 5mm; }
  .doc-ntld-frame { border: 1px solid #000; }
  .doc-logos { width: 100%; border-collapse: collapse; }
  .doc-logos td { border-bottom: 1px solid #000; padding: 1.4mm 2mm; text-align: center; vertical-align: middle; height: 17mm; }
  .doc-logos img { max-height: 15mm; max-width: 48mm; }
  .doc-bbkt .doc-logos td { height: 17mm; padding: 0.8mm 2mm; }
  .doc-bbkt .doc-logos img { max-height: 15mm; max-width: 46mm; }
  .doc-ntld-project > div { border-bottom: 1px solid #000; padding: 0.8mm 1.2mm; font-size: 8.8pt; line-height: 1.25; }
  .doc-ntld-title { border-bottom: 1px solid #000; text-align: center; font-size: 10.4pt; padding: 1mm 1.2mm; margin: 0; text-transform: uppercase; }
  .doc-ntld-meta { width: 100%; border-collapse: collapse; }
  .doc-ntld-meta > tbody > tr > td { border: 0; padding: 0; vertical-align: top; }
  .doc-ntld-meta .meta-left { width: 74%; }
  .doc-ntld-meta .meta-right { width: 26%; }
  .doc-ntld-meta table { width: 100%; border-collapse: collapse; }
  .doc-ntld-meta th, .doc-ntld-meta td { border: 1px solid #000; padding: 0.8mm 1mm; font-size: 8.2pt; font-weight: 400; text-align: left; vertical-align: middle; }
  .doc-ntld-meta th { width: 25mm; }
  .doc-ntld-meta .meta-left th:last-child, .doc-ntld-meta .meta-left td:last-child { border-right: 0; }
  .doc-ntld-meta .meta-right th { width: 16mm; }
  .doc-ntld-meta .meta-right td { height: 10mm; font-size: 8pt; }
  .doc-ntld-rows { width: 100%; border-collapse: collapse; }
  .doc-ntld-rows th, .doc-ntld-rows td { border: 1px solid #000; padding: 0.9mm 1mm; text-align: left; vertical-align: middle; font-size: 8.2pt; }
  .doc-ntld-rows th { width: 38mm; font-weight: 700; font-size: 7.4pt; white-space: nowrap; }
  .doc-ntld-rows .doc-shade th, .doc-ntld-rows .doc-shade td { background: #f6e3e3; }
  .doc-ntld .doc-table { margin: 0; }
  .doc-ntld .doc-table th, .doc-ntld .doc-table td { padding: 0.9mm 0.9mm; font-size: 8pt; }
  .doc-ntld .doc-table th { font-size: 7.8pt; background: #fff; }
  .doc-ntld .doc-checklist { table-layout: fixed; }
  .doc-ntld .doc-table .doc-blank-head { background: #fff; }
  .doc-ntld .doc-table th.doc-group-label { text-align: left; }
  .doc-ntld .doc-table .doc-center.mark { font-size: 9.5pt; }
  .doc-ntld .doc-group-row td { background: #fff; padding: 0.6mm 1mm; font-size: 8pt; }
  .doc-ntld .doc-legend-table { margin: 0; font-size: 7.4pt; }
  .doc-ntld .doc-legend-table th, .doc-ntld .doc-legend-table td { border: 1px solid #000; padding: 0.6mm 0.8mm; vertical-align: top; }
  .doc-ntld .doc-legend-table th { background: #fff; text-align: center; font-weight: 400; }
  .doc-ntld .doc-legend-table .doc-legend-name { width: 12%; font-weight: 700; }
  .doc-ntld .doc-legend-table tr > th:nth-child(2) { width: 4%; }
  .doc-ntld-opinion { width: 100%; border-collapse: collapse; }
  .doc-ntld-opinion th, .doc-ntld-opinion td { border: 1px solid #000; padding: 0.8mm 1mm; text-align: left; vertical-align: middle; font-size: 8pt; }
  .doc-ntld-opinion th { width: 12%; }
  .doc-sign-ntld th, .doc-sign-ntld td { padding: 0.8mm 0.8mm; font-size: 7.8pt; }
  .doc-sign-ntld .doc-sign-head th { background: transparent; font-size: 7.8pt; }
  .doc-sign-ntld .doc-sign-cell { height: 26mm; }
  .doc-sign-ntld tr:first-child th:first-child { width: 15%; }
  .doc-sign-bbkt tr:first-child th:first-child { width: 13%; }

  /* Biên bản kiểm tra vật liệu (VLĐV) – bám mẫu checklist hiện trường */
  .doc-bbkt .doc-bbkt-title { font-size: 9.4pt; line-height: 1.18; padding: 0.7mm; }
  .doc-bbkt .doc-bbkt-label { font-size: 8.6pt; margin: 0.6mm 0 0.4mm; }
  .doc-bbkt .doc-bbkt-cont-title { border-bottom: 1px solid #000; padding: 1mm 1.2mm; font-size: 8.6pt; text-align: center; }
  .doc-bbkt .doc-ntld-meta th, .doc-bbkt .doc-ntld-meta td { padding: 0.6mm 1mm; }
  .doc-bbkt .doc-ntld-rows th, .doc-bbkt .doc-ntld-rows td { padding: 0.7mm 1mm; }
  .doc-bbkt .doc-table { margin: 0; }
  .doc-bbkt .doc-table th, .doc-bbkt .doc-table td { padding: 0.4mm 0.7mm; }
  .doc-bbkt .doc-checklist th, .doc-bbkt .doc-checklist td { padding: 0.38mm 0.6mm; }
  .doc-bbkt .doc-legend-table th, .doc-bbkt .doc-legend-table td { padding: 0.35mm 0.6mm; }
  .doc-bbkt .doc-ntld-opinion { margin-top: 0.5mm; }
  .doc-bbkt .doc-ntld-opinion th, .doc-bbkt .doc-ntld-opinion td { padding: 0.5mm 0.8mm; }
  .doc-sign-bbkt th, .doc-sign-bbkt td { padding: 0.5mm 0.6mm; }
  .doc-sign-bbkt .doc-sign-cell { height: 16mm; }

  /* Danh mục hồ sơ */
  .doc-company-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 8mm; }
  .doc-company-logo { width: 82px; height: auto; flex: none; }
  .doc-company-copy { font-size: 10pt; line-height: 1.3; padding-top: 2px; }
  .doc-company-copy b { display: block; font-size: 11.4pt; text-transform: uppercase; margin-bottom: 1px; }
  .doc-company-copy > span { display: block; }
  .doc-company-copy > .doc-company-links { display: flex; gap: 24mm; }
  .doc-dm-title { text-align: center; font-size: 13.8pt; text-transform: uppercase; text-decoration: underline; margin: 6mm 0 4mm; line-height: 1.3; }
  .doc-info.doc-info-lines { font-size: 10.8pt; margin: 0 0 4mm; }
  .doc-info.doc-info-lines th { width: 22mm; }
  .doc-dm-table th, .doc-dm-table td { font-size: 9.8pt; padding: 2mm 1.5mm; }
  .doc-dm-table th { font-size: 9.2pt; background: #d9d9d9; }
  .doc-dm-table .doc-group-row td { background: #a6a6a6; }
  .doc-dm-sign { margin-top: 8mm; text-align: right; }
  .doc-dm-sign .doc-date { padding: 0; margin-bottom: 1mm; }

  /* Phụ lục bản vẽ kèm theo */
  .doc-drawing-project { display: flex; flex-direction: column; gap: 1mm; border-bottom: 1px solid #000; padding-bottom: 2mm; margin-bottom: 4mm; font-size: 11pt; }
  .doc-drawing-title { text-align: center; text-transform: uppercase; font-size: 14pt; margin: 4mm 0 1.5mm; text-decoration: underline; }
  .doc-drawing-sub { text-align: center; font-size: 10.8pt; margin-bottom: 4mm; }
  .doc-drawing-table th, .doc-drawing-table td { font-size: 10pt; padding: 2mm 1.5mm; }
  .doc-drawing-table th { background: #d9d9d9; }
  .doc-drawing-table td:nth-child(2) { text-align: left; }
  .doc-drawing-note { margin-top: 4mm; font-size: 9.6pt; font-style: italic; }
  .doc-drawing-page { padding: 8mm 10mm 5mm; }
  .doc-drawing-img { height: 262mm; display: flex; align-items: center; justify-content: center; }
  .print-page.doc-landscape .doc-drawing-img { height: 178mm; }
  .doc-drawing-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .doc-drawing-caption { text-align: center; font-size: 8pt; font-style: italic; margin-top: 1.5mm; }
}
