/* Saateleht: A5, äärised 0 cm, sisu üleval ja keskel (nagu Allari Exceli STL-leht). */
@page { size: A5 portrait; margin: 0; }
* { box-sizing: border-box; }
html { background: #e9e6e0; }
body { margin: 0; font: 13px/1.3 Calibri, Carlito, Arial, sans-serif; color: #000; }
.tooriba { position: sticky; top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #d8d3ca; font: 15px/1.4 "Schibsted Grotesk", Arial, sans-serif; }
.tooriba p { margin: 0; color: #5f5b55; text-align: center; }
.tooriba button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: #df0207; color: #fff; font: 700 15px "Schibsted Grotesk", Arial, sans-serif; cursor: pointer; }
.a5 { width: 148mm; min-height: 210mm; margin: 20px auto 40px; padding: 6mm 5mm 0; background: #fff; }
.sl-pea { display: flex; justify-content: space-between; gap: 6mm; font-size: 12.5px; line-height: 1.45; padding-bottom: 2mm; border-bottom: 1.2px solid #000; }
.sl-rida { display: flex; justify-content: space-between; align-items: baseline; margin: 3mm 0 2mm; font-size: 15px; }
.sl-rida > b { font-size: 17px; letter-spacing: .02em; }
.sl-klient { margin: 0 0 2mm; padding: 2mm 2.5mm; border: 1.2px solid #000; font-weight: 700; font-size: 13.5px; white-space: pre-wrap; }
.sl-tabel { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sl-tabel th, .sl-tabel td { border: 1px solid #000; padding: 0 1.6mm; height: 7mm; text-align: left; vertical-align: middle; }
.sl-tabel th { background: #ececec; height: 6mm; font-weight: 700; }
.sl-tabel .nr { width: 6mm; text-align: center; color: #555; }
.sl-tabel .arv { text-align: right; white-space: nowrap; width: 1%; }
.sl-tabel tfoot td { font-weight: 700; height: 7.5mm; }
.sl-markus { margin: 2.5mm 0 0; font-size: 12.5px; }
.sl-nr { margin: 2mm 0 0; font-size: 11px; color: #555; text-align: right; }
@media screen and (max-width: 640px) {
  .a5 { width: auto; min-height: 0; margin: 12px; padding: 16px 12px; }
  .sl-pea { flex-direction: column; gap: 6px; }
}
@media print {
  html { background: #fff; }
  .tooriba { display: none; }
  .a5 { margin: 0 auto; }
}
