/* Thermal receipt paper style - narrow, monospace, B&W */

.receipt-paper {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  color: #000;
  padding: 12px 10px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 0 0 1px #000;
  border-radius: 4px;
}

.receipt-inner {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* Header */
.receipt-header {
  text-align: center;
  margin-bottom: 6px;
}

.receipt-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.receipt-logo {
  font-size: 18px;
}

.company-name {
  font-size: 24px;
  font-weight: bold;
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
}

.meta-left {
  flex: 1;
  text-align: left;
}

.meta-right {
  text-align: right;
}

/* Separator - grey faded like thermal receipt */
.receipt-sep {
  font-size: 11px;
  letter-spacing: 1px;
  margin: 6px 0;
  color: #999;
}

/* Block */
.receipt-block {
  margin-bottom: 4px;
}

.receipt-block-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 12px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 11px;
}

.receipt-row .label {
  flex-shrink: 0;
  text-align: left;
  max-width: 50%;
}

.receipt-row .value {
  text-align: right;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.receipt-row.wrap .value {
  text-align: right;
}

.receipt-row.strong .label,
.receipt-row.strong .value {
  font-weight: bold;
}

.receipt-row.item-line {
  font-size: 11px;
}

/* Footer */
.receipt-footer {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
}

.receipt-thanks {
  margin: 0 0 4px;
  font-weight: bold;
}

.receipt-datetime {
  margin: 0;
  font-size: 10px;
}

/* Print: hide everything except receipt */
@media print {
  body * {
    visibility: hidden;
  }

  #receipt-section,
  #receipt-section *,
  #receipt-paper,
  #receipt-paper * {
    visibility: visible;
  }

  #receipt-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .receipt-actions,
  .no-print,
  .receipt-section h2 {
    display: none !important;
  }

  .receipt-paper {
    max-width: 80mm;
    box-shadow: none;
    border: none;
    padding: 4px;
  }

  .receipt-inner {
    max-width: 72mm;
  }
}
