#ac-form [hidden] { display: none !important; }
#ac-form input[type="text"], #ac-form input[type="date"], #ac-form textarea, #ac-form select { min-width: 0; max-width: 100%; }
#ac-date-options { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0; }
#ac-preview { min-width: 0; }
.ac-sheet-wrap { width: 100%; overflow: hidden; background: #e9ecf1; margin: 16px 0; }
.ac-sheet { width: 277mm; height: 188mm; box-sizing: border-box; padding: 10mm; background: #fff; color: #211c17; transform-origin: top left; font-family: "DFKai-SB", "BiauKai", "標楷體", "Kaiti TC", serif; }
.ac-sheet.ac-portrait { width: 190mm; height: 275mm; }
.ac-inner { width: 100%; height: 100%; box-sizing: border-box; padding: 8mm; border: 3mm double #71562d; display: flex; flex-direction: column; gap: 4mm; overflow-wrap: anywhere; }
.ac-frame-gold .ac-inner { border: 1mm solid #997332; outline: 1mm solid #997332; outline-offset: 2mm; box-shadow: inset 0 0 0 1.5mm #fff, inset 0 0 0 2mm #997332; }
.ac-frame-stripe .ac-inner { border: 3mm solid transparent; border-image: repeating-linear-gradient(45deg, #66513a 0 2mm, #fff 2mm 4mm) 12; outline: .4mm solid #66513a; }
.ac-inner p, .ac-inner h3 { margin: 0; white-space: pre-wrap; line-height: 1.8; font-weight: normal; }
.ac-inner .ac-doc-title { font-size: 32pt; text-align: center; letter-spacing: .3em; font-weight: bold; }
.ac-inner .ac-doc-number { font-size: 12pt; text-align: right; }
.ac-inner .ac-doc-name { font-size: 23pt; }
.ac-inner .ac-doc-body { font-size: 20pt; flex: 1; min-height: 0; }
.ac-inner .ac-doc-issuer, .ac-inner .ac-doc-leader { font-size: 17pt; text-align: right; }
.ac-inner .ac-doc-date { font-size: 15pt; text-align: center; }
.ac-inner p:empty { display: none; }
.ac-vertical .ac-inner { writing-mode: vertical-rl; text-orientation: upright; gap: 6mm; }
.ac-vertical .ac-doc-title { text-align: start; }
.ac-vertical .ac-doc-number { text-align: start; }
.ac-vertical .ac-doc-body { min-width: 0; }
.ac-vertical .ac-doc-date { text-align: end; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff; }
  .site-header, .site-footer { display: none !important; }
  main.wrap { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  main.wrap > * { display: none !important; }
  main.wrap > #ac-preview { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  #ac-preview > :not(#ac-pages) { display: none !important; }
  #ac-pages .ac-sheet-wrap { margin: 0; height: auto !important; width: auto; overflow: visible; background: none; break-after: page; page-break-after: always; break-inside: avoid; }
  #ac-pages .ac-sheet-wrap:last-child { break-after: auto; page-break-after: auto; }
  .ac-sheet { transform: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ac-sheet { height: 188mm; overflow: hidden; }
  .ac-sheet.ac-portrait { height: 275mm; }
}
