<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
/* Setting up the page size for DK1201 label - 90x29mm */
@page {
  size: 90mm 29mm;
  margin: 0;
}

/* Force page breaks after each label */
body {
  margin: 0;
  padding: 0;
  width: 90mm;
  height: 29mm;
  position: relative;
  font-family: Arial, sans-serif;
}

.label-container {
  width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 1mm;
  page-break-after: always;
}

/* Main address centered */
.address {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 88mm;
  height: 100%;
  text-align: center;
}

.recipient-name {
  font-size: 12pt;
  margin-bottom: 1mm;
  text-transform: uppercase;
}

.address-line {
  font-size: 11pt;
  line-height: 1.1;
  margin-bottom: 0.5mm;
  text-transform: uppercase;
}

.city-line {
  font-size: 11pt;
  text-transform: uppercase;
}
</style>
</head>
<body>
  <div class="label-container">
    <div class="address">
      <div class="recipient-name">{{ recipient_name }}</div>
      <div class="address-line">{{ address_line1 }}{% if address_line2 %} {{ address_line2 }}{% endif %}</div>
      <div class="city-line">{{ city }}, {{ state }} {{ zip_code }}</div>
    </div>
  </div>
</body>
</html> 