.decl-page {
  box-sizing: border-box; max-width: 210mm; margin: 0 auto; padding: 11mm 12mm 15mm;
  background: white; color: #151515; font: 10pt/1.35 SimSun, "Songti SC", serif;
  text-align: left; overflow-wrap: anywhere;
}
.decl-page h2 { margin: 0 0 5mm; color: inherit; font: bold 16pt/1.4 SimSun, "Songti SC", serif; text-align: center; }
.decl-page table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; font: inherit; }
.decl-page table th, .decl-page table td { height: auto; border: .65pt solid #333; padding: 1mm 1.4mm; white-space: normal; background: white; color: #151515; font: inherit; text-align: left; }
.decl-page table thead th { color: #151515; }
.decl-page table tbody tr:hover td { background: white; }
.decl-page table th { text-align: center; font-weight: bold; }
.decl-page .decl-number { text-align: right; font-family: Arial, sans-serif; font-variant-numeric: tabular-nums; }
.decl-meta, .decl-sign { display: flex; justify-content: space-between; gap: 4mm; margin: 1.5mm 0; }
.decl-ident > div { margin: 1.8mm 0; }
.decl-meta > :last-child { flex-shrink: 0; }
.decl-stamps { display: grid; grid-template-columns: 1.2fr 1fr .9fr; border: .65pt solid #333; border-top: 0; }
.decl-stamps > div { display: flex; flex-direction: column; justify-content: space-between; gap: 3mm; padding: 2mm; }
.decl-stamps > div + div { border-left: .65pt solid #333; }
.decl-page .decl-stamps p { margin: 0; font: inherit; }
.decl-page .decl-draft { margin: 3mm 0 0; text-align: right; color: #555; font: 8.5pt/1.3 SimSun, serif; }
@media screen {
  [data-sales-report] { overflow: auto; background: #eaf0f3; border: 1px solid #dbe6ed; }
  [data-sales-report] .decl-page { min-width: 670px; }
  [data-sales-report] .decl-page:not(.decl-selected) { display: none; }
}
@page liquidation-forms { size: A4 portrait; margin: 11mm 12mm; }
@media print {
  .decl-page { page: liquidation-forms; break-after: page; max-width: none; padding: 0 .4mm; margin: 0; }
  .decl-page:last-child { break-after: auto; }
  .decl-page tr, .decl-sign, .decl-stamps { break-inside: avoid; }
  .decl-page thead { display: table-header-group; }
  body:has(.decl-page) .decl-tabs, body:has(.decl-page) [data-decl-warnings], body:has(.decl-page) .sales-tax-tools { display: none !important; }
}
