body {
  font-family: Arial, sans-serif;
  margin: 0; padding: 0;
  color: #444;
}
.receipt-wrapper {
  width: 720px;
  margin: auto;
  border: 1px solid #ddd;
}

.header-bar,
.footer-bar {
  width: 100%;
  height: 12px;
  background: #c00;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}
.header h1 {
  margin: 0;
  font-size: 28px;
  color: #666;
}
.logo img {
  max-height: 60px;
}

.info-section {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 20px;
}
.info-section .left-block,
.info-section .right-block {
  width: 32%;
}
.right-block.secondary {
  width: 32%;
  text-align: right;
}
.info-section h2 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #333;
}
.info-section p {
  margin: 2px 0;
  font-size: 12px;
}

.items {
  width: 100%;
  border-collapse: collapse;
  margin: 0 20px;
}
.items th {
  background: #c00;
  color: #fff;
  padding: 8px;
  font-size: 12px;
  text-align: left;
}
.items td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.totals {
  width: 100%;
  margin: 20px 0;
  padding: 0 20px;
}
.totals table {
  width: 100%;
  border-collapse: collapse;
}
.totals td {
  padding: 6px;
  font-size: 12px;
}
.totals td:first-child {
  text-align: right;
  font-weight: bold;
}
.totals td:last-child {
  width: 150px;
  text-align: right;
}
