.top nav form { margin: 0; }
.stats.cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stats.cards .stat { min-height: 110px; padding: 16px 20px; border-radius: 26px; }
.stats.cards .stat b { font-size: 40px; margin-bottom: 8px; }
.stats.cards .stat span { font-size: 15px; }
.stats.cards .stat.on { outline: 5px solid var(--ink); outline-offset: 2px; }
table.inv { width: 100%; border-collapse: collapse; min-width: 820px; }
table.inv th { text-align: left; font-size: 14px; padding: 10px 8px; border-bottom: 3px solid var(--line); }
table.inv td { font-size: 15px; padding: 12px 8px; border-bottom: 2px solid var(--line); vertical-align: top; }
table.inv tr[data-href] { cursor: pointer; }
table.inv tr[data-href]:hover td { background: #FFFAF0; }
.scroll { overflow-x: auto; }
input[type=date], input[type=number] { width: 100%; padding: 12px 18px; font: inherit; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 999px; }
.pad { width: 100%; max-width: 520px; height: 200px; background: #fff; border: 2.5px dashed var(--ink); border-radius: 18px; touch-action: none; display: block; }
.sigthumb { height: 44px; max-width: 160px; }
details > summary { cursor: pointer; font-weight: 800; }
.paper { max-width: 820px; margin: 0 auto 24px; background: #fff; color: #000; border: 1px solid #999; padding: clamp(18px, 5vw, 52px); font: 15px/1.45 Carlito, Calibri, Arial, sans-serif; display: flex; flex-direction: column; gap: 12px; }
.paper ul { margin: 0; padding-left: 22px; }
.paper-head, .paper-row, .sigrow { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.paper-co { text-align: center; font-size: 14px; }
.paper-co img { width: 130px; }
.paper-items { width: 100%; border-collapse: collapse; }
.paper-items th, .paper-items td { border: 1px solid #000; padding: 5px 9px; text-align: left; vertical-align: top; }
.paper-items .qty { width: 100px; text-align: center; }
.sigrow .who { flex: 1 1 300px; }
.sigrow .when { flex: 0 1 180px; text-align: center; }
.sigline { border-bottom: 1px solid #000; min-height: 52px; display: flex; flex-direction: column; justify-content: flex-end; }
.sigline img { height: 38px; width: auto; max-width: 220px; object-fit: contain; align-self: flex-start; margin-bottom: -6px; }
@media print {
  @page { size: A4; margin: 10mm; }
  .noprint, .top { display: none !important; }
  body { background: #fff; min-height: 0; }
  main { padding: 0; }
  .paper { border: 0; padding: 0; max-width: none; font-size: 12.5px; gap: 7px; margin: 0; }
  .sigline { min-height: 42px; }
}
