.receipts main {
  max-width: 60rem;
  margin: auto;
  padding: clamp(1rem, 3vw, 3rem);
}
.receipts h1,
.receipts #slip-title {
  font: 550 clamp(2rem, 4vw, 3.25rem)/1.06 var(--display);
  letter-spacing: -0.04em;
}
.receipts #notice:empty {
  display: none;
}
.receipts #filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.receipts label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  min-width: 0;
}
.receipts input,
.receipts select,
.receipts button {
  min-height: 44px;
  max-width: 100%;
}
.receipts #date-range summary {min-height:44px;cursor:pointer}
.receipts #date-range[open] div {display:flex;gap:.6rem;flex-wrap:wrap}
.receipts #receipt-scope {color:var(--muted)}
.receipts .receipt-row span:first-child {min-width:0;overflow-wrap:anywhere}
.receipts button.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  text-align: left;
  width: 100%;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0.25rem;
  color: var(--ink);
}
.receipts .receipt-row span {
  display: grid;
  gap: 0.3rem;
}
.receipts .receipt-row span:last-child {
  text-align: right;
  flex: none;
}
.receipts .receipt-row small {
  color: var(--muted);
  font-weight: 400;
}
.receipts .receipt-row:hover,
.receipts .receipt-row:focus-visible {
  background: var(--surface);
}
.receipts .controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}
.receipts #back {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.receipts #slip {
  box-sizing: border-box;
  max-width: 42rem;
  margin: 1.5rem auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.receipts #slip header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.receipts #slip header div {
  display: grid;
  gap: 0.25rem;
}
.receipts #logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
.receipts #slip header span,
.receipts #reference {
  color: var(--muted);
}
.receipts #slip-title {
  margin: 2rem 0 0.5rem;
}
.receipts #original {
  color: var(--ink);
}
.receipts #slip dl {
  margin: 1rem 0;
}
.receipts #slip dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.receipts #slip dd {
  text-align: right;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.receipts #slip dt {
  color: var(--muted);
}
.receipts #net {
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--ink);
}
@media (max-width: 540px) {
  .receipts #filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .receipts #filter button {
    grid-column: 1/-1;
    justify-self: stretch;
  }
  .receipts #date-range {grid-column:1/-1}
  .receipts #filter select {
    width: 100%;
  }
}
.receipts .print-prompt {
  display: none;
}
@media print {
  .receipts .print-prompt {
    display: block;
  }
  .receipts:has(.print-ready) .print-prompt {
    display: none;
  }
  @page {
    margin: 17mm;
  }
  body.receipts {
    color: #171717;
    background: white;
    font:
      11pt/1.4 Arial,
      sans-serif;
    --ink: #171717;
    --surface: #fff;
    --muted: #444;
    --line: #ccc;
  }
  .receipts .screen,
  .receipts #work:not(.print-ready),
  .receipts [hidden] {
    display: none !important;
  }
  .receipts main,
  .receipts #slip {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: white;
  }
  .receipts #slip-title {
    font-size: 25pt;
  }
  .receipts #slip header,
  .receipts #slip dl div,
  .receipts #net {
    break-inside: avoid;
  }
  .receipts #slip h3 {
    break-after: avoid;
  }
}
