/* Документы для печати, формат А4 */
@page { size: A4; margin: 16mm 15mm 16mm 20mm; }
* { box-sizing: border-box; }
body { margin: 0; background: #e9ecf1; font-family: 'Onest', Arial, sans-serif; color: #111; font-size: 10.5pt; line-height: 1.42; }
.sheet { background: #fff; width: 210mm; min-height: 297mm; margin: 12mm auto; padding: 16mm 15mm 16mm 20mm; box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.toolbar { position: sticky; top: 0; z-index: 2; background: #14213d; color: #fff; padding: .6rem 1rem; display: flex; gap: .8rem; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.toolbar button, .toolbar a { font: inherit; background: #ffd23f; color: #14213d; border: 0; border-radius: 7px; padding: .4rem .9rem; cursor: pointer; text-decoration: none; font-weight: 600; }
.toolbar a.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
h1 { font-size: 13pt; text-align: center; margin: 0 0 2mm; }
.sub { text-align: center; margin: 0 0 5mm; }
.meta { display: flex; justify-content: space-between; margin-bottom: 4mm; }
h2 { font-size: 10.5pt; margin: 4mm 0 1.5mm; }
p { margin: 0 0 1.6mm; text-align: justify; }
.blank { display: inline-block; min-width: 38mm; border-bottom: 1px solid #111; }
table.t { width: 100%; border-collapse: collapse; margin: 2mm 0 3mm; }
table.t th, table.t td { border: 1px solid #333; padding: 1.5mm 2mm; text-align: left; vertical-align: top; }
table.t th { background: #f1f1f1; font-weight: 600; width: 36%; }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; margin-top: 6mm; page-break-inside: avoid; }
.sign h3 { font-size: 10.5pt; margin: 0 0 2mm; }
.sign p { text-align: left; margin: 0 0 1mm; }
.sign .line { margin-top: 10mm; border-top: 1px solid #111; padding-top: 1mm; font-size: 8.5pt; color: #444; }
.small { font-size: 8.5pt; color: #444; }
.sample-note { background: #fff7d6; border: 1px solid #f0d77a; padding: 3mm 4mm; margin-bottom: 5mm; border-radius: 2mm; text-align: left; }
@media print {
  body { background: #fff; }
  .toolbar, .sample-note { display: none; }
  .sheet { margin: 0; padding: 0; width: auto; min-height: 0; box-shadow: none; }
}
@media (max-width: 820px) { .sheet { width: auto; margin: 0; padding: 6mm; min-height: 0; } .sign { grid-template-columns: 1fr; } }

/* Пакет документов: каждый с новой страницы */
.bundle .sheet { page-break-after: always; break-after: page; }
.bundle .sheet:last-child { page-break-after: auto; break-after: auto; }
