@page {
  size: 80mm auto;
  margin: 2mm;
}

@media print {
  body {
    background: #fff;
  }

  body * {
    visibility: hidden !important;
  }

  #print-receipt,
  #print-receipt * {
    visibility: visible !important;
  }

  #print-receipt {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    min-height: auto;
    background: #fff;
    color: #000;
    font-family: "Arial", sans-serif;
    font-size: 12px;
    line-height: 1.35;
    padding: 2mm;
  }

  .receipt-header {
    text-align: var(--receipt-header-align, center);
    margin-bottom: 8px;
  }

  .receipt-salon-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .receipt-subline {
    margin-bottom: 2px;
  }

  .receipt-divider {
    border-top: 1px dashed #000;
    margin: 6px 0;
  }

  .receipt-info-row,
  .receipt-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
  }

  .receipt-items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
  }

  .receipt-items th,
  .receipt-items td {
    padding: 2px 0;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
  }

  .receipt-items th:nth-child(1),
  .receipt-items td:nth-child(1) {
    width: 10mm;
  }

  .receipt-items th:nth-child(2),
  .receipt-items td:nth-child(2) {
    width: 44mm;
  }

  .receipt-items th:nth-child(3),
  .receipt-items td:nth-child(3) {
    width: 24mm;
    text-align: right;
  }

  .receipt-total {
    font-weight: 700;
    font-size: 14px;
  }

  .receipt-footer {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
  }
}
