.xml-reader-page {
  --xml-ink: var(--vnpt-text, #0f172a);
  --xml-blue: var(--vnpt-primary, #0068ff);
  --xml-navy: var(--vnpt-navy, #082e6b);
  --xml-line: var(--vnpt-border, #dce8f7);
  --xml-soft: var(--vnpt-bg-soft, #f7faff);
  color: var(--xml-ink);
  background: var(--vnpt-bg-soft, #f7faff);
  font-family: var(--font-body, "Inter", sans-serif);
}

.xml-reader-page ::selection { background: #cfe4ff; color: #071f46; }
.xml-reader-page button,
.xml-reader-page a { text-underline-offset: 3px; }
.xml-reader-page button:focus-visible,
.xml-reader-page a:focus-visible,
.xml-reader-dropzone:focus-visible,
.xml-invoice-table-wrap:focus-visible,
.sig-tech-drawer__summary:focus-visible,
.xml-reader-faq summary:focus-visible { outline: 3px solid rgba(0, 104, 255, .28); outline-offset: 3px; }

/* HERO COMPACT SAAS */
.xml-reader-hero {
  position: relative;
  padding: 24px 0 64px;
  overflow: hidden;
  background: var(--vnpt-gradient-hero, linear-gradient(135deg, #ffffff 0%, #f4f8ff 50%, #eaf4ff 100%));
  border-bottom: 1px solid var(--xml-line);
}

.xml-reader-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--vnpt-text-muted, #64748b);
}
.xml-reader-breadcrumb a { color: var(--xml-blue); text-decoration: none; font-weight: 600; }
.xml-reader-breadcrumb i { font-size: 11px; }

.xml-reader-hero__header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.xml-reader-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
}

.xml-reader-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.xml-reader-hero__banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 104, 255, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(220, 232, 247, 0.95);
  transition: transform .25s ease, box-shadow .25s ease;
  background: #ffffff;
}
.xml-reader-hero__banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 104, 255, 0.18), 0 6px 16px rgba(15, 23, 42, 0.08);
}
.xml-reader-hero__banner picture,
.xml-reader-hero__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.xml-reader-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.xml-reader-hero__btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 104, 255, 0.07);
  color: #0052cc;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.xml-reader-hero__btn-share:hover {
  background: rgba(0, 104, 255, 0.14);
  color: #0047b9;
}

.xml-reader-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eaf4ff;
  border: 1px solid #cce2ff;
  color: #0052cc;
  font-size: 12.5px;
  font-weight: 700;
}

.xml-reader-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: clamp(1.95rem, 3.3vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--vnpt-dark-navy, #071f46);
  text-wrap: balance;
}

.xml-reader-hero__header > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--vnpt-text-secondary, #334155);
  font-size: 16.5px;
  line-height: 1.65;
}

/* WORKSPACE SINGLE-FLOW */
.xml-reader-workspace {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  padding-bottom: 72px;
}

.xml-reader-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* UPLOADER PANEL */
.xml-reader-uploader {
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--xml-line);
  box-shadow: var(--shadow-card, 0 8px 30px rgba(0, 68, 160, 0.08));
}

.xml-reader-uploader__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.xml-reader-modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: #f1f6ff;
  border: 1px solid #dce8f7;
}

.xml-reader-modes button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #475569;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}

.xml-reader-modes button:hover {
  color: #082e6b;
  background: rgba(255, 255, 255, .7);
}

.xml-reader-modes button.is-active {
  color: #0052cc;
  background: #fff;
  border-color: #cce0fa;
  box-shadow: 0 4px 12px rgba(0, 82, 204, .08);
}

.xml-reader-modes button > i { font-size: 15px; color: #0068ff; }
.xml-reader-modes button span { display: inline-flex; align-items: baseline; gap: 6px; }
.xml-reader-modes strong { font-size: 13.5px; font-weight: 700; }
.xml-reader-modes small { color: #64748b; font-size: 11.5px; font-weight: 500; }

.xml-reader-local {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 12.5px;
  font-weight: 700;
}

.xml-reader-dropzone {
  display: grid;
  justify-items: center;
  padding: 38px 24px;
  border: 2px dashed #93c5fd;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.xml-reader-dropzone:hover,
.xml-reader-dropzone.is-dragging {
  border-color: var(--xml-blue);
  background: #eff6ff;
  box-shadow: 0 12px 30px rgba(0, 104, 255, .1);
}

.xml-reader-dropzone__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #fff;
  background: var(--vnpt-gradient-primary, linear-gradient(135deg,#168bff,#0047b9));
  box-shadow: 0 10px 24px rgba(0, 82, 204, .22);
  font-size: 26px;
}

.xml-reader-dropzone strong {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #082e6b;
}

.xml-reader-dropzone > span:not(.xml-reader-dropzone__icon) {
  margin-top: 6px;
  font-size: 14px;
  color: #475569;
}

.xml-reader-dropzone__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--vnpt-gradient-primary, linear-gradient(135deg,#168bff,#0047b9));
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 104, 255, .22);
}

/* ACTIVE FILE BAR (Compact 1-Row When File Selected) */
.xml-reader-activebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #cfe0f5;
  box-shadow: 0 6px 20px rgba(8, 46, 107, .06);
}

.xml-reader-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.xml-reader-file__icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #0068ff;
  background: #eaf4ff;
  font-size: 20px;
}

.xml-reader-file__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.xml-reader-file__copy strong {
  overflow: hidden;
  color: #082e6b;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xml-reader-file__copy small {
  color: #64748b;
  font-size: 12px;
}

.xml-reader-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e40af;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
}

.xml-reader-status__marker {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #168bff;
  box-shadow: 0 0 0 4px rgba(22, 139, 255, .16);
}

.xml-reader-status strong { display: block; font-size: 12.5px; font-weight: 700; }
.xml-reader-status p { margin: 1px 0 0; font-size: 11.5px; opacity: .9; }
.xml-reader-status.is-error { color: #991b1b; background: #fef2f2; }
.xml-reader-status.is-error .xml-reader-status__marker { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.xml-reader-status.is-success { color: #065f46; background: #ecfdf5; }
.xml-reader-status.is-success .xml-reader-status__marker { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }

.xml-reader-activebar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xml-btn-reselect,
.xml-btn-remove {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}

.xml-btn-reselect {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #0052cc;
}
.xml-btn-reselect:hover { background: #dbeafe; }

.xml-btn-remove {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}
.xml-btn-remove:hover { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }

/* STAGE & EMPTY STATE */
.xml-reader-stage { min-width: 0; }

.xml-reader-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--xml-line);
  color: #475569;
}

.xml-reader-empty__icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf4ff;
  color: #0068ff;
  font-size: 18px;
}

.xml-reader-empty h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #082e6b;
}

.xml-reader-empty p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
}

/* RESULT TOOLBAR */
.xml-result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--xml-line);
}
.xml-result-toolbar > div:first-child { display: grid; gap: 2px; min-width: 0; }
.xml-result-toolbar__state { display: inline-flex; align-items: center; gap: 7px; color: #059669; font-size: 13px; font-weight: 800; }
.xml-result-toolbar small { overflow: hidden; color: #64748b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.xml-result-toolbar__actions { display: flex; gap: 8px; }
.xml-result-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #1e293b;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.xml-result-toolbar button:hover { border-color: #94a3b8; background: #f8fafc; }
.xml-result-toolbar button.is-primary {
  border-color: #0068ff;
  color: #fff;
  background: var(--vnpt-gradient-primary, linear-gradient(135deg,#168bff,#0047b9));
  box-shadow: 0 6px 16px rgba(0, 104, 255, .2);
}

/* XML INVOICE SHEET */
.xml-invoice-sheet { padding: clamp(24px, 3.5vw, 40px); border-radius: 20px; background: #fff; border: 1px solid var(--xml-line); box-shadow: var(--shadow-card, 0 8px 30px rgba(0, 68, 160, 0.08)); }
.xml-invoice-sheet__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 24px; border-bottom: 2px solid #0d4b9c; }
.xml-invoice-sheet__header p { margin: 0 0 6px; color: #0068ff; font-size: 13px; font-weight: 700; }
.xml-invoice-sheet__header h2 { margin: 0 0 8px; color: #082e6b; font: 800 clamp(22px, 3vw, 30px)/1.2 var(--font-display, "Manrope", sans-serif); letter-spacing: -.025em; }
.xml-invoice-sheet__header > div > span { color: #5c6f88; font-size: 13px; }
.xml-invoice-identifiers { display: grid; grid-template-columns: auto auto; gap: 7px 15px; margin: 0; font-size: 12px; }
.xml-invoice-identifiers dt { color: #6a7a90; font-weight: 500; }
.xml-invoice-identifiers dd { margin: 0; color: #173d6b; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.xml-invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0; border: 1px solid #dce8f7; border-radius: 14px; overflow: hidden; }
.xml-invoice-parties > div { padding: 20px; }
.xml-invoice-parties > div + div { border-left: 1px solid #dce8f7; }
.xml-invoice-parties h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #0d4387; font: 800 15px/1.3 var(--font-body, "Inter", sans-serif); }
.xml-invoice-parties dl { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; margin: 0; font-size: 12.5px; }
.xml-invoice-parties dt { color: #64748b; }
.xml-invoice-parties dd { margin: 0; color: #0f172a; font-weight: 600; overflow-wrap: anywhere; }
.xml-invoice-parties .is-missing { color: #94a3b8; font-weight: 400; }

.xml-invoice-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.xml-invoice-section-title h3 { margin: 0; color: #082e6b; font-size: 15px; font-weight: 800; }
.xml-invoice-section-title span { color: #64748b; font-size: 12px; }
.xml-invoice-table-wrap { overflow-x: auto; max-inline-size: 100%; border: 1px solid #dce8f7; border-radius: 12px; }
.xml-invoice-lines table { width: 100%; min-width: 690px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.xml-invoice-lines thead { position: sticky; inset-block-start: 0; z-index: 1; }
.xml-invoice-lines th { padding: 11px 10px; color: #1e3a8a; background: #eff6ff; font-weight: 700; text-align: left; }
.xml-invoice-lines td { padding: 12px 10px; border-top: 1px solid #e2e8f0; color: #1e293b; vertical-align: top; }
.xml-invoice-lines th:first-child,
.xml-invoice-lines td:first-child { width: 45px; text-align: center; }
.xml-invoice-lines .is-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xml-invoice-lines .is-note td { color: #64748b; font-style: italic; background: #f8fafc; }

.xml-invoice-summary { display: grid; grid-template-columns: 1fr minmax(300px, .72fr); gap: 28px; margin-top: 22px; }
.xml-invoice-payment { color: #475569; font-size: 12.5px; line-height: 1.65; }
.xml-invoice-payment p { margin: 0 0 6px; }
.xml-invoice-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 18px; margin: 0; font-size: 13px; }
.xml-invoice-summary dt { color: #475569; font-weight: 500; }
.xml-invoice-summary dd { margin: 0; color: #0f172a; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.xml-invoice-summary .is-grand-total { padding-top: 10px; border-top: 1px solid #cbd5e1; color: #082e6b; font-size: 15.5px; font-weight: 800; }

.xml-signature-panel { margin-top: 26px; padding: 20px; border-radius: 14px; background: #f8fbff; border: 1px solid #dce8f7; }
.xml-signature-panel__head { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; }
.xml-signature-panel__head > div:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #0068ff; background: #eaf4ff; font-size: 20px; }
.xml-signature-panel__head h3 { margin: 0 0 4px; color: #082e6b; font-size: 15px; font-weight: 800; }
.xml-signature-panel__head p { margin: 0; color: #475569; font-size: 12.5px; }
.xml-signature-panel__head > span { padding: 6px 12px; border-radius: 999px; color: #92400e; background: #fef3c7; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.xml-signature-panel__head > span.is-positive { color: #065f46; background: #d1fae5; }
.xml-signature-panel__head > span.is-negative { color: #991b1b; background: #fee2e2; }

.xml-certificate-list { display: grid; gap: 14px; margin-top: 15px; }
.xml-certificate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #dce8f7; }
.xml-certificate div { min-width: 0; }
.xml-certificate small { display: block; margin-bottom: 3px; color: #64748b; font-size: 11px; }
.xml-certificate strong { display: block; color: #0f172a; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.xml-signature-disclaimer { display: flex; gap: 8px; margin: 13px 0 0; color: #64748b; font-size: 11.5px; line-height: 1.5; }
.xml-invoice-sheet__footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; color: #64748b; font-size: 11px; }
.xml-invoice-sheet__footer p { margin: 0; }
.xml-invoice-sheet__footer span { max-width: 50%; color: #334155; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* BÁO CÁO CHỮ KÝ SỐ CHUYÊN SÂU — MODERN MINIMALIST SAAS */
.signature-report__sheet {
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--xml-line);
  box-shadow: var(--shadow-card, 0 8px 30px rgba(0, 68, 160, 0.08));
}

.signature-report__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.signature-report__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #0068ff;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.signature-report__header h2 {
  margin: 0 0 6px;
  color: #071f46;
  font: 800 clamp(20px, 2.5vw, 26px)/1.25 var(--font-display, "Manrope", sans-serif);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.signature-report__header > div:first-child > span {
  color: #64748b;
  font-size: 13px;
}

.signature-report__verdict {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 430px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.signature-report__verdict > i { font-size: 22px; margin-top: 2px; }
.signature-report__verdict span { display: grid; gap: 3px; }
.signature-report__verdict strong { font-size: 13.5px; line-height: 1.35; }
.signature-report__verdict small { font-size: 12px; line-height: 1.45; opacity: .92; }
.signature-report__verdict.has-signature { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.signature-report__verdict.no-signature { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.signature-report__verdict.is-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }

/* 5-PILLAR BENTO KPI STRIP */
.signature-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 28px;
}

.signature-check {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dce8f7;
  min-width: 0;
}

.signature-check > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #0068ff;
  background: #eaf4ff;
  font-size: 16px;
}

.signature-check.is-positive { background: #f4fdf8; border-color: #bbf7d0; }
.signature-check.is-positive > i { color: #15803d; background: #dcfce7; }
.signature-check.is-warning { background: #fffdf5; border-color: #fde68a; }
.signature-check.is-warning > i { color: #b45309; background: #fef3c7; }
.signature-check.is-negative { background: #fff8f8; border-color: #fecaca; }
.signature-check.is-negative > i { color: #b91c1c; background: #fee2e2; }

.signature-check div { min-width: 0; }
.signature-check strong {
  display: block;
  margin-bottom: 5px;
  color: #082e6b;
  font-size: 13px;
  font-weight: 800;
}
.signature-check p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* SIGNATURE TIMELINE HEADER */
.signature-detailed-section { margin-top: 10px; }
.signature-detailed-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #f1f6ff;
  border: 1px solid #dce8f7;
  margin-bottom: 18px;
}
.signature-detailed-section__title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.signature-detailed-section__icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  color: #0068ff;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 82, 204, .08);
}
.signature-detailed-section__head h3 {
  margin: 0 0 3px;
  color: #082e6b;
  font-size: 16px;
  font-weight: 800;
}
.signature-detailed-section__head p {
  margin: 0;
  color: #475569;
  font-size: 13px;
}
.signature-detailed-section__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
#signatureTrustBadge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
}
#signatureTrustBadge.is-positive { background: #d1fae5; color: #065f46; }
#signatureTrustBadge.is-negative { background: #fee2e2; color: #991b1b; }

.sig-toggle-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #0052cc;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.sig-toggle-all-btn:hover { background: #eff6ff; border-color: #93c5fd; }

.signature-detailed-list { display: grid; gap: 18px; }

/* SIGNATURE CARD — FLAT, MODERN & PROFESSIONAL (KHÔNG CARD LỒNG CARD) */
.sig-detail-card {
  padding: 24px 26px;
  border: 1px solid #e2e8f0;
  border-top: 3.5px solid #0068ff;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(8, 46, 107, .05);
  position: relative;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.sig-detail-card:hover {
  box-shadow: 0 8px 26px rgba(8, 46, 107, .08);
  border-color: #cbd5e1;
}
.sig-detail-card.is-positive { border-top-color: #16a34a; }
.sig-detail-card.is-warning { border-top-color: #f59e0b; }
.sig-detail-card.is-negative { border-top-color: #ef4444; }

.sig-detail-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}
.sig-detail-card__title { min-width: 0; }
.sig-detail-card__index {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #0052cc;
  background: #eaf4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.sig-detail-card__title h4 {
  margin: 0 0 4px;
  color: #071f46;
  font: 800 18px/1.35 var(--font-display, "Manrope", sans-serif);
  overflow-wrap: anywhere;
}
.sig-detail-card__title p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   MODERN ENTERPRISE DASHBOARD 2026 — UI/UX CHO CHỮ KÝ SỐ PDF
   ========================================================================== */

/* Design Tokens Enterprise 2026 */
:root {
  --ent-primary: #0866d8;
  --ent-primary-bg: #eff6ff;
  --ent-primary-border: #dbeafe;
  --ent-success: #15803d;
  --ent-success-bg: #f0fdf4;
  --ent-success-border: #dcfce7;
  --ent-warning: #b45309;
  --ent-warning-bg: #fffbeb;
  --ent-warning-border: #fef3c7;
  --ent-danger: #b91c1c;
  --ent-danger-bg: #fef2f2;
  --ent-danger-border: #fee2e2;
  --ent-text-primary: #172033;
  --ent-text-secondary: #64748b;
  --ent-border: #e2e8f0;
  --ent-card-bg: #ffffff;
  --ent-page-bg: #f8fafc;
}

/* Card chữ ký tổng thể */
.sig-detail-card {
  position: relative;
  background: var(--ent-card-bg);
  border: 1px solid var(--ent-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sig-detail-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* KHU VỰC A — HÀNG TRÊN CÙNG */
.sig-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.sig-header-bar__left,
.sig-header-bar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* HỆ THỐNG BADGE ĐỒNG NHẤT (HEIGHT, PADDING, RADIUS) */
.sig-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.sig-badge i {
  font-size: 13px;
  line-height: 1;
}

.sig-badge.is-primary {
  color: var(--ent-primary);
  background: var(--ent-primary-bg);
  border-color: var(--ent-primary-border);
}
.sig-badge.is-success {
  color: var(--ent-success);
  background: var(--ent-success-bg);
  border-color: var(--ent-success-border);
}
.sig-badge.is-warning {
  color: var(--ent-warning);
  background: var(--ent-warning-bg);
  border-color: var(--ent-warning-border);
}
.sig-badge.is-danger {
  color: var(--ent-danger);
  background: var(--ent-danger-bg);
  border-color: var(--ent-danger-border);
}
.sig-badge.is-neutral {
  color: var(--ent-text-secondary);
  background: #f8fafc;
  border-color: var(--ent-border);
}

.sig-badge--verdict {
  font-weight: 700;
  font-size: 13px;
  padding: 0 14px;
}
.sig-badge--lg {
  height: 30px;
  font-size: 12.5px;
  font-weight: 700;
}

/* NÚT TẢI FILE .CER */
.sig-btn-download-cer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid var(--ent-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.sig-btn-download-cer i {
  color: var(--ent-primary);
  font-size: 13px;
}
.sig-btn-download-cer:hover {
  color: var(--ent-primary);
  background: var(--ent-primary-bg);
  border-color: var(--ent-primary-border);
  box-shadow: 0 2px 8px rgba(8, 102, 216, 0.12);
}

/* KHU VỰC A — THÔNG TIN NGƯỜI KÝ & HỘP KẾT QUẢ SÚC TÍCH */
.sig-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.sig-signer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 340px;
}
.sig-avatar-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--ent-primary-bg);
  border: 1px solid var(--ent-primary-border);
  color: var(--ent-primary);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.sig-signer-meta {
  min-width: 0;
}
.sig-signer-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--ent-text-primary);
  line-height: 1.3;
  margin: 0 0 3px 0;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.sig-signer-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ent-text-secondary);
  line-height: 1.4;
  margin: 0 0 2px 0;
}
.sig-signer-org {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}
.sig-dot-sep {
  color: #cbd5e1;
  margin: 0 4px;
}

/* HỘP KẾT QUẢ SÚC TÍCH (CALLOUT TỐI ĐA 2 DÒNG) */
.sig-verdict-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid;
  flex: 0 1 440px;
  min-width: 280px;
}
.sig-verdict-callout.is-positive {
  background: var(--ent-success-bg);
  border-color: var(--ent-success-border);
}
.sig-verdict-callout.is-warning {
  background: var(--ent-warning-bg);
  border-color: var(--ent-warning-border);
}
.sig-verdict-callout.is-negative {
  background: var(--ent-danger-bg);
  border-color: var(--ent-danger-border);
}

.sig-verdict-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.sig-verdict-callout.is-positive .sig-verdict-icon {
  color: var(--ent-success);
  background: #dcfce7;
}
.sig-verdict-callout.is-warning .sig-verdict-icon {
  color: var(--ent-warning);
  background: #fef3c7;
}
.sig-verdict-callout.is-negative .sig-verdict-icon {
  color: var(--ent-danger);
  background: #fee2e2;
}

.sig-verdict-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px 0;
  line-height: 1.35;
}
.sig-verdict-callout.is-positive .sig-verdict-heading { color: var(--ent-success); }
.sig-verdict-callout.is-warning .sig-verdict-heading { color: var(--ent-warning); }
.sig-verdict-callout.is-negative .sig-verdict-heading { color: var(--ent-danger); }

.sig-verdict-sub {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

/* KHU VỰC A — HÀNG PILLS TRẠNG THÁI & NÚT XEM GIẢI THÍCH */
.sig-pills-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}
.sig-pills-bar__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.sig-explain-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ent-primary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all .15s ease;
}
.sig-explain-toggle:hover {
  background: var(--ent-primary-bg);
}
.sig-explain-toggle i.bi-chevron-right,
.sig-explain-toggle i.bi-chevron-down {
  font-size: 11px;
  transition: transform .2s ease;
}

/* HỘP GIẢI THÍCH MỞ RỘNG (COLLAPSIBLE EXPLANATION) */
.sig-explanation-box {
  background: #f8fafc;
  border: 1px solid var(--ent-border);
  border-left: 3px solid var(--ent-primary);
  border-radius: 10px;
  padding: 14px 18px;
  margin: -10px 0 20px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  animation: sigFadeIn .2s ease;
}
.sig-explanation-box strong {
  color: var(--ent-text-primary);
}
@keyframes sigFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* KHU VỰC B — BA CARD THÔNG TIN CHÍNH (THREE CARDS GRID) */
.sig-three-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.sig-four-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.sig-subcard {
  background: #ffffff;
  border: 1px solid var(--ent-border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sig-subcard:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.sig-subcard__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ent-text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}
.sig-subcard__header i {
  color: var(--ent-primary);
  font-size: 15px;
}

.sig-subcard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Khối giờ nổi bật ở Card 1 */
.sig-time-highlight-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 12px;
}
.sig-time-highlight-box i {
  color: var(--ent-primary);
  font-size: 19px;
  line-height: 1;
}
.sig-time-highlight-box__val {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.25;
}

.sig-subcard__highlight {
  font-size: 18px;
  font-weight: 700;
  color: var(--ent-text-primary);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.25;
  margin-bottom: 4px;
}
.sig-subcard__highlight-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.sig-subcard__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.sig-subcard__rows.is-spaced {
  gap: 10px;
}
.sig-subcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}
.sig-subcard__label {
  color: var(--ent-text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}
.sig-subcard__val {
  color: var(--ent-text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  max-width: 65%;
}
.sig-subcard__val.sig-tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

/* KHU VỰC 3 — TRẠNG THÁI THU HỒI (OCSP/CRL & LTV) (FULL-WIDTH CARD) */
.sig-revocation-fullcard {
  background: #fffdfa;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.04);
}
.sig-revocation-fullcard__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sig-revocation-fullcard__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.sig-revocation-fullcard__title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #082e6b;
  margin: 0;
}
.sig-revocation-fullcard__content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.sig-revocation-fullcard__group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sig-revocation-fullcard__group--note {
  margin-left: auto;
  font-size: 13px;
  color: #475569;
}
.sig-revocation-fullcard__group--note i {
  color: #0284c7;
  font-size: 14px;
}

/* KHU VỰC C — ACCORDION THÔNG SỐ KỸ THUẬT CHUYÊN SÂU */
.sig-tech-accordion {
  border: 1px solid var(--ent-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  margin-top: 16px;
}
.sig-tech-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--ent-text-primary);
  list-style: none;
  transition: background .15s ease;
}
.sig-tech-accordion__summary::-webkit-details-marker { display: none; }
.sig-tech-accordion__summary:hover {
  background: #f1f5f9;
}
.sig-tech-accordion__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sig-tech-accordion__title i {
  color: var(--ent-primary);
  font-size: 15px;
}
.sig-tech-accordion__title strong {
  font-weight: 700;
}
.sig-tech-accordion__sub {
  color: var(--ent-text-secondary);
  font-size: 12px;
  font-weight: 400;
}
.sig-tech-accordion__chevron {
  color: var(--ent-text-secondary);
  font-size: 13px;
  transition: transform .2s ease;
}
.sig-tech-accordion[open] .sig-tech-accordion__summary {
  border-bottom: 1px solid var(--ent-border);
}
.sig-tech-accordion[open] .sig-tech-accordion__chevron {
  transform: rotate(180deg);
}

.sig-tech-accordion__content {
  padding: 20px;
  background: #ffffff;
}

.sig-tech-three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sig-tech-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sig-tech-col h5 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ent-text-primary);
  margin: 0 0 4px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.sig-tech-col h5 i {
  color: var(--ent-primary);
  font-size: 14px;
}

.sig-tech-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}
.sig-tech-field__label {
  color: var(--ent-text-secondary);
  font-size: 11.5px;
  font-weight: 500;
}
.sig-tech-field__val-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.sig-tech-field__val {
  color: var(--ent-text-primary);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-all;
}
.sig-tech-field__val.is-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

/* NÚT COPY & LINK KỸ THUẬT */
.sig-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--ent-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ent-text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: all .15s ease;
}
.sig-icon-btn:hover {
  color: var(--ent-primary);
  border-color: var(--ent-primary-border);
  background: var(--ent-primary-bg);
}
.sig-tech-link {
  color: var(--ent-primary);
  font-size: 12px;
  font-weight: 500;
  word-break: break-all;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sig-tech-link:hover {
  text-decoration: underline;
}

/* Chuỗi CA visual */
.sig-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.sig-chain__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ent-text-primary);
  font-weight: 700;
  white-space: nowrap;
}
.sig-chain__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sig-chain__node {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sig-chain__node.is-root { color: #082e6b; background: #e0effe; }
.sig-chain__node.is-intermediate { color: #0052cc; background: #edf5ff; }
.sig-chain__node.is-leaf { color: #065f46; background: #d1fae5; }
.sig-chain__arrow { color: #94a3b8; font-size: 10px; }

.sig-detail-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sig-detail-group {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 0;
}
.sig-detail-group h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dce8f7;
  color: #082e6b;
  font-size: 12.5px;
  font-weight: 800;
}
.sig-detail-group h5 i { color: #0068ff; }
.sig-detail-group__fields { display: grid; gap: 9px; }
.sig-field { min-width: 0; }
.sig-field small {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 11px;
}
.sig-field strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.sig-field strong.is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #1e3a8a;
}

/* EDUCATIONAL TSA & LTV SECTION INSIDE REPORT */
.sig-tsa-ltv-guide {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
  border: 1px solid #d5e6fb;
}

.sig-tsa-ltv-guide__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.sig-tsa-ltv-guide__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0052cc;
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid #cce0fa;
}

.sig-tsa-ltv-guide__header h3 {
  margin: 0;
  color: #071f46;
  font: 800 19px/1.3 var(--font-display, "Manrope", sans-serif);
}

.sig-tsa-ltv-guide__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--vnpt-gradient-primary, linear-gradient(135deg,#168bff,#0047b9));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 104, 255, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sig-tsa-ltv-guide__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 104, 255, .24);
}

.sig-tsa-ltv-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sig-tsa-ltv-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dce8f7;
  box-shadow: 0 4px 14px rgba(8, 46, 107, .04);
}

.sig-tsa-ltv-card--highlight {
  background: #fff;
  border-color: #93c5fd;
}

.sig-tsa-ltv-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sig-tsa-ltv-card__num {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eaf4ff;
  color: #0052cc;
  font-size: 14px;
  font-weight: 800;
}

.sig-tsa-ltv-card h4 {
  margin: 0 0 2px;
  color: #071f46;
  font: 800 16px/1.3 var(--font-display, "Manrope", sans-serif);
}

.sig-tsa-ltv-card__head small {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.sig-tsa-ltv-card p {
  margin: 0 0 10px;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.62;
}
.sig-tsa-ltv-card p:last-child { margin-bottom: 0; }

.signature-report__limits {
  display: flex;
  gap: 13px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #1e3a8a;
  background: #f1f6ff;
  border: 1px solid #dce8f7;
}
.signature-report__limits > i { margin-top: 2px; color: #0068ff; font-size: 18px; }
.signature-report__limits strong { display: block; margin-bottom: 4px; font-size: 12.5px; }
.signature-report__limits p { margin: 0; font-size: 12px; line-height: 1.6; color: #334155; }

.xml-reader-noscript { margin-top: 16px; padding: 16px; border-radius: 12px; color: #991b1b; background: #fef2f2; }

/* SUPPORTING SECTIONS */
.xml-reader-guide { padding: 72px 0; background: #fff; border-top: 1px solid var(--xml-line); }
.xml-reader-guide .container { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 72px; }
.xml-reader-guide__intro h2,
.xml-reader-faq__intro h2,
.xml-reader-next__heading h2 { margin: 0 0 14px; color: #082e6b; font: 800 clamp(1.75rem, 2.8vw, 2.35rem)/1.22 var(--font-display, "Manrope", sans-serif); letter-spacing: -.025em; text-wrap: balance; }
.xml-reader-guide__intro p,
.xml-reader-faq__intro p,
.xml-reader-next__heading p { margin: 0; color: #475569; line-height: 1.68; }
.xml-reader-guide__steps { list-style: none; margin: 0; padding: 0; }
.xml-reader-guide__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 0 0 24px; }
.xml-reader-guide__steps li + li { padding-top: 24px; border-top: 1px solid #e2ebf6; }
.xml-reader-guide__steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: #0068ff; font-weight: 800; }
.xml-reader-guide__steps h3 { margin: 0 0 6px; color: #082e6b; font-size: 17px; font-weight: 800; }
.xml-reader-guide__steps p { margin: 0; color: #475569; line-height: 1.62; }

.signature-help { padding: 72px 0; color: #fff; background: var(--vnpt-gradient-dark, linear-gradient(135deg, #082e6b 0%, #0052cc 100%)); }
.signature-help .container { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: 72px; }
.signature-help__intro h2 { margin: 0 0 14px; font: 800 clamp(1.75rem, 2.8vw, 2.35rem)/1.22 var(--font-display, "Manrope", sans-serif); letter-spacing: -.025em; text-wrap: balance; }
.signature-help__intro p { margin: 0; color: #dbeafe; line-height: 1.68; }
.signature-help__list { border-top: 1px solid rgba(255,255,255,.18); }
.signature-help__list a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; min-height: 82px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; transition: background-color .2s ease, padding .2s ease; }
.signature-help__list a:hover { padding-inline: 12px; background: rgba(255,255,255,.08); }
.signature-help__list a > span:first-child { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.16); }
.signature-help__list a > div { display: grid; gap: 4px; }
.signature-help__list strong { font-size: 14.5px; }
.signature-help__list small { color: #dbeafe; font-size: 12.5px; }
.signature-help__list a > i:last-child { color: #93c5fd; }

.xml-reader-faq { padding: 72px 0; background: #f8fbff; }
.xml-reader-faq .container { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: 72px; }
.xml-reader-faq__list { border-top: 1px solid #cbdced; }
.xml-reader-faq details { border-bottom: 1px solid #cbdced; }
.xml-reader-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; color: #082e6b; cursor: pointer; font-weight: 700; list-style: none; }
.xml-reader-faq summary::-webkit-details-marker { display: none; }
.xml-reader-faq summary i { transition: transform .2s ease; }
.xml-reader-faq details[open] summary i { transform: rotate(45deg); }
.xml-reader-faq details p { max-width: 70ch; margin: -2px 44px 20px 0; color: #475569; line-height: 1.65; }

.xml-reader-next { padding: 72px 0 88px; background: #fff; border-top: 1px solid var(--xml-line); }
.xml-reader-next__heading { max-width: 720px; margin-bottom: 28px; }
.xml-reader-next__links { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dce8f7; border-radius: 16px; overflow: hidden; }
.xml-reader-next__links a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; min-width: 0; padding: 22px; color: #082e6b; text-decoration: none; transition: background-color .2s ease; }
.xml-reader-next__links a + a { border-left: 1px solid #dce8f7; }
.xml-reader-next__links a:hover { background: #f8fbff; }
.xml-reader-next__links a > i:first-child { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #0068ff; background: #eaf4ff; font-size: 20px; }
.xml-reader-next__links a > i:last-child { color: #0068ff; }
.xml-reader-next__links span { display: grid; min-width: 0; gap: 4px; }
.xml-reader-next__links strong { font-size: 14px; }
.xml-reader-next__links small { color: #64748b; font-size: 12px; line-height: 1.4; }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
  .sig-three-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sig-three-cards-grid .sig-subcard:last-child:nth-child(odd) { grid-column: span 2; }
  .sig-four-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sig-tech-three-cols { grid-template-columns: 1fr; gap: 18px; }
  .signature-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sig-spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .sig-spec-cell:nth-child(2) { border-right: none; }
  .sig-spec-cell:nth-child(3) { border-top: 1px solid #edf2f7; padding-top: 14px; padding-left: 0; }
  .sig-spec-cell:nth-child(4) { border-top: 1px solid #edf2f7; padding-top: 14px; border-right: none; }
  .sig-detail-card__grid { grid-template-columns: 1fr; }
  .sig-tsa-ltv-guide__grid { grid-template-columns: 1fr; }
  .xml-invoice-parties { grid-template-columns: 1fr; }
  .xml-invoice-parties > div + div { border-top: 1px solid #dce8f7; border-left: 0; }
  .xml-invoice-summary { grid-template-columns: 1fr; }
  .signature-report__header { flex-direction: column; align-items: flex-start; }
  .signature-report__verdict { max-width: 100%; width: 100%; }
  .xml-reader-next__links { grid-template-columns: 1fr; }
  .xml-reader-next__links a + a { border-top: 1px solid #dce8f7; border-left: 0; }
}

@media (max-width: 820px) {
  .xml-reader-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .xml-reader-hero__copy { align-items: center; text-align: center; }
  .xml-reader-hero__actions { justify-content: center; width: 100%; }
  .xml-reader-hero__banner { max-width: 560px; margin: 0 auto; }
  .sig-header-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sig-header-bar__left, .sig-header-bar__right { width: 100%; justify-content: flex-start; }
  .sig-hero-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .sig-verdict-callout { width: 100%; min-width: 0; }
  .sig-pills-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sig-pills-bar__list { width: 100%; }
  .sig-explain-toggle { align-self: flex-start; }
  .sig-revocation-fullcard__content { gap: 12px 16px; }
  .sig-revocation-fullcard__group--note { margin-left: 0; width: 100%; }
  .signature-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xml-reader-guide .container,
  .xml-reader-faq .container,
  .signature-help .container { grid-template-columns: 1fr; gap: 36px; }
  .xml-reader-empty { flex-direction: column; text-align: center; }
}

@media (max-width: 575px) {
  .sig-three-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .sig-three-cards-grid .sig-subcard:last-child:nth-child(odd) { grid-column: auto; }
  .sig-four-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .sig-time-highlight-box { padding: 8px 12px; gap: 8px; }
  .sig-time-highlight-box__val { font-size: 15px; }
  .sig-revocation-fullcard { padding: 14px 14px; }
  .sig-revocation-fullcard__content { flex-direction: column; align-items: stretch; gap: 10px; }
  .sig-revocation-fullcard__group { justify-content: flex-start; }
  .sig-revocation-fullcard__group--note { padding-top: 8px; border-top: 1px dashed #fed7aa; }
  .sig-subcard { min-width: 0; padding: 14px 12px; }
  .sig-subcard__row { flex-wrap: wrap; gap: 4px; }
  .sig-subcard__row > span:last-child { word-break: break-all; }
  .sig-subcard__highlight-badges { flex-direction: column; align-items: stretch; }
  .sig-badge { max-width: 100%; height: auto; min-height: 28px; padding: 4px 10px; font-size: 12px; white-space: normal; line-height: 1.3; }
  .sig-signer-profile { flex-direction: column; align-items: flex-start; }
  .sig-avatar-box { width: 40px; height: 40px; font-size: 18px; }
  .sig-signer-name { font-size: 16px; }
  .sig-tech-col { min-width: 0; }
  .sig-tech-field { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sig-tech-value { max-width: 100%; text-align: left; }
  .xml-reader-hero { padding: 18px 0 48px; }
  .xml-reader-hero h1 { font-size: 1.75rem; }
  .xml-reader-hero__header > p { font-size: 15px; }
  .xml-reader-workspace { margin-top: -24px; padding-bottom: 52px; }
  .xml-reader-uploader { padding: 18px 14px; border-radius: 16px; }
  .xml-reader-modes { width: 100%; display: grid; grid-template-columns: 1fr; }
  .xml-reader-modes button { justify-content: flex-start; width: 100%; }
  .xml-reader-dropzone { padding: 26px 14px; }
  .xml-reader-activebar { padding: 14px; }
  .xml-reader-status { max-width: 100%; width: 100%; }
  .xml-reader-activebar__actions { width: 100%; }
  .xml-reader-activebar__actions button { flex: 1; justify-content: center; }
  .xml-result-toolbar { flex-direction: column; align-items: stretch; padding: 14px; }
  .xml-result-toolbar__actions { width: 100%; }
  .xml-result-toolbar button { flex: 1; }
  .xml-invoice-sheet,
  .signature-report__sheet { padding: 18px 14px; border-radius: 16px; }
  .xml-invoice-sheet__header { flex-direction: column; }
  .xml-invoice-identifiers { width: 100%; }
  .signature-checks { grid-template-columns: 1fr; }
  .sig-spec-strip { grid-template-columns: 1fr; gap: 14px 0; }
  .sig-spec-cell { border-right: none; border-bottom: 1px solid #edf2f7; padding: 0 0 12px 0; }
  .sig-spec-cell:last-child { border-bottom: none; padding-bottom: 0; }
  .sig-detail-card { padding: 18px 16px; }
  .sig-detail-card__head { flex-direction: column; }
  .sig-tsa-ltv-card { padding: 18px 16px; }
  .xml-certificate { grid-template-columns: 1fr; }
  .xml-invoice-sheet__footer { flex-direction: column; }
  .xml-invoice-sheet__footer span { max-width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .xml-reader-page *, .xml-reader-page *::before, .xml-reader-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body > *:not(.xml-reader-page),
  .xml-reader-hero,
  .xml-reader-uploader,
  .xml-reader-activebar,
  .xml-result-toolbar,
  .xml-reader-guide,
  .signature-help,
  .xml-reader-faq,
  .xml-reader-next,
  .xml-reader-noscript,
  .vnpt-header,
  .vnpt-footer,
  .floating-actions,
  .mobile-bottom-nav { display: none !important; }
  .xml-reader-workspace { margin: 0; padding: 0; }
  .xml-reader-shell { display: block; max-width: 100%; }
  .xml-invoice-sheet,
  .signature-report__sheet { padding: 0; border: 0; box-shadow: none; }
  .sig-detail-card { break-inside: avoid; box-shadow: none; }
  .sig-tech-drawer[open] .sig-tech-drawer__body { display: block; }
  .xml-invoice-table-wrap { overflow: visible; }
  .xml-invoice-lines table { min-width: 0; }
  @page { size: A4; margin: 14mm; }
}
