body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  margin: 0;
  padding: 20px;
}

.app {
  max-width: 1000px;
  margin: auto;
}

h1 {
  font-size: 22px;
  margin-bottom: 16px;
  text-align: center;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

legend {
  font-weight: bold;
}

label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 6px;
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.items {
  grid-column: span 2;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 6px;
  font-size: 13px;
  text-align: center;
}

.btn {
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary {
  background: #047857;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
}

.receipt-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.receipt {
  width: 72mm;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.receipt-logo {
  max-width: 80px;
  max-height: 80px;
  margin: 0 auto 8px;
  display: block;
  border-radius: 8px;
}

.divider {
  border-top: 1px dashed #ccc;
  margin: 8px 0;
}

.center {
  text-align: center;
}

.muted {
  color: #6b7280;
  font-size: 12px;
}

.brand {
  font-size: 16px;
  font-weight: bold;
}

table.receipt-items th,
table.receipt-items td {
  border: none;
  padding: 4px 0;
}

table.totals {
  margin-top: 8px;
}

table.totals td {
  padding: 4px 0;
}

@media print {
  body * {
    visibility: hidden;
  }
  #receipt,
  #receipt * {
    visibility: visible;
  }
  #receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 72mm;
    min-height: 297mm;
    box-shadow: none;
    border-radius: 0;
  }
}
