/* Стилі вмісту документа: спільні для редактора канцелярії та сторінки перегляду акта. */
.doc-content {
  font-family: "Times New Roman", Times, serif;
  font-size: 14pt;
  line-height: 1.15;
  color: #000;
  text-align: left;
  overflow-wrap: break-word;
}
.doc-content p,
.doc-content div { margin: 0 0 6pt; }
.doc-content h1 {
  font-size: 18pt;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 8pt;
}
.doc-content h2 { font-size: 16pt; font-weight: 700; margin: 10pt 0 6pt; }
.doc-content h3 { font-size: 14pt; font-weight: 700; margin: 8pt 0 4pt; }
.doc-content ol { list-style: none; counter-reset: wd-item; margin: 0 0 6pt; padding: 0; }
.doc-content ol ol,
.doc-content ul ol { padding-left: 1.25cm; margin: 0; }
.doc-content ol > li { counter-increment: wd-item; margin: 0 0 4pt; text-align: justify; }
.doc-content ol > li::before { content: counters(wd-item, ".") ". "; }
.doc-content ul { margin: 0 0 6pt; padding-left: 1.25cm; }
.doc-content li ul { margin: 0; }
.doc-content ul > li { margin: 0 0 3pt; }
.doc-content table { border-collapse: collapse; width: 100%; margin: 0 0 6pt; }
.doc-content td,
.doc-content th { border: 1px solid #000; padding: 3pt 6pt; vertical-align: top; }
.doc-content th { font-weight: 700; background: #f2f2f2; }
.doc-content td > p:last-child,
.doc-content th > p:last-child { margin-bottom: 0; }
.doc-content table.noborder td,
.doc-content table.noborder th,
.doc-content table.sig td { border: 0; }
.doc-content table.sig { margin-top: 18pt; }
.doc-content table.sig td { vertical-align: bottom; padding: 0 2pt; width: 33.3%; }
.doc-content .signature { font-family: "Great Vibes", cursive; font-size: 26pt; font-weight: 400; line-height: 1; }
.doc-content hr { border: 0; border-top: 1px solid #000; margin: 6pt 0; }
.doc-content .page-break { margin: 0; height: 0; break-after: page; page-break-after: always; }
.doc-content img { max-width: 100%; height: auto; }
.doc-content blockquote { margin: 0 0 6pt 1.25cm; }
.doc-content a { color: #1a4fa0; text-decoration: underline; }
.doc-content .fld.empty { display: none; }

/* Аркуш, опублікований з Канцелярії: поля сторінки, фон і печатка задані інлайн */
.ch-sheet {
  position: relative;
  box-sizing: border-box;
  margin: 0 auto;
  background: #fff no-repeat 0 0;
  color: #000;
  overflow: hidden;
}
.ch-sheet .doc-content { position: relative; z-index: 1; }
.ch-seal { position: absolute; z-index: 2; pointer-events: none; mix-blend-mode: multiply; }
.ch-seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ch-seal .official-seal {
  width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%;
  border: 4px double #7a1f1f;
  background: radial-gradient(circle, rgba(247,244,237,.92), rgba(247,244,237,.55));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: #7a1f1f; font-family: 'Cinzel', serif; line-height: 1.15;
  box-shadow: 0 0 0 3px rgba(122,31,31,.15);
}
/* На сторінці перегляду аркуш Канцелярії сам задає розміри — рамку .a4-page прибираємо */
.a4-page:has(> .ch-sheet) {
  width: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none;
  font: inherit; line-height: normal; overflow: visible;
}
.a4-page:has(> .ch-sheet) > .ch-sheet { box-shadow: 0 18px 40px rgba(15, 20, 30, .18); }
@media print {
  .a4-page:has(> .ch-sheet) > .ch-sheet { box-shadow: none; }
}
/* Загальні стилі .a4-page для h2 не повинні впливати на текст із Канцелярії */
.ch-sheet .doc-content h2 { text-align: inherit; color: inherit; }
