.player-row .player-name {
  flex: 1;
}
.player-row .player-name strong {
  color: color-mix(in srgb, var(--seat) 74%, #152720);
}
.player-row .balance {
  margin-left: 0;
}
.participant,
.cash-receipt .participant,
.cash-leg .participant {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  vertical-align: middle;
  max-width: 100%;
  grid-column: auto;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: color-mix(in srgb, var(--pc) 73%, #152720);
}
.participant img {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  flex: none;
}
.participant > span,
.cash-receipt .participant > span,
.cash-leg .participant > span {
  font: inherit;
  line-height: inherit;
  color: inherit;
  grid-column: auto;
  overflow-wrap: anywhere;
}
.trade-peers {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trade-peers legend {
  font-weight: 700;
  margin-bottom: 6px;
}
.trade-peers label {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #b7c3b1;
  cursor: pointer;
  background: #faf9ef;
}
.trade-peers label:has(:checked) {
  background: #e8f0e0;
  border-color: #507258;
  box-shadow: 0 0 0 1px #507258;
}
.trade-peers input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.trade-peers label:focus-within {
  outline: 2px solid #325c98;
  outline-offset: 2px;
}
.cash-receipt,
.bill.receipt-paper {
  --paper: #fff9e9;
  position: relative;
  margin: 8px 0 12px;
  padding: 12px 14px 15px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(107deg, #ffffff65, transparent 38%), var(--paper);
  box-shadow:
    0 3px 1px #665d461c,
    0 6px 16px #26372b36;
  color: #28392c;
}
.cash-receipt:after,
.bill.receipt-paper:after {
  content: "";
  height: 6px;
  position: absolute;
  inset: auto 0 -5px;
  background:
    linear-gradient(135deg, var(--paper) 25%, transparent 25%) -4px 0/8px 8px
      repeat-x,
    linear-gradient(225deg, var(--paper) 25%, transparent 25%) -4px 0/8px 8px
      repeat-x;
}
.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed #a6a18b;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.slip-head small,
.bill .slip-head small {
  font:
    700 11px/1.2 "Courier New",
    monospace;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #30563b;
}
.slip-head small + small,
.bill .slip-head small + small {
  color: #716e5a;
  white-space: nowrap;
}
.invoice-ticket .slip-head small:first-child,
.bill .slip-head small:first-child {
  color: #895c1c;
}
.cash-receipt > strong,
.bill.receipt-paper > strong {
  font: 700 16px/1.2 var(--serif);
}
.auction-lot {
  padding: 12px 15px;
  border-top: 5px solid #427051;
  background: #eef3e5;
}
.auction-lot h3 {
  margin: 4px 0;
  font: 700 24px var(--serif);
}
.auction-lot small {
  font: 700 10px var(--sans);
  letter-spacing: 0.15em;
}
.auction-lot > span {
  font-size: 13px;
  color: #566755;
}
.auction-facts {
  margin: 9px 0 16px;
}
.auction-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dotted #bdc6b6;
  padding: 4px 0;
  font-size: 14px;
}
.auction-facts b {
  text-align: right;
}
.auction-facts .participant {
  max-width: 15em;
}
.build-sample {
  width: 1.8em;
  height: 1.55em;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 2px;
}
@media (max-width: 600px) {
  .player-row {
    gap: 6px;
  }
  .cash-receipt {
    padding: 8px 10px 10px;
  }
  .cash-receipt .cash-lines {
    margin-top: 4px;
  }
  .cash-receipt .slip-head {
    padding-bottom: 4px;
    margin-bottom: 3px;
  }
}

.transfer-line,
.cash-receipt .transfer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 5px;
  font: 600 13px/1.25 var(--sans);
}
.transfer-parties,
.cash-receipt .transfer-parties {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 5px;
  min-width: 0;
  max-width: 100%;
  font: inherit;
}
.transfer-party,
.cash-receipt .transfer-party {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: inherit;
}
.transfer-arrow,
.cash-receipt .transfer-arrow {
  font: 700 15px var(--sans);
  color: #657060;
}
.transfer-sum,
.cash-receipt .transfer-sum,
.bill .transfer-sum {
  font:
    700 14px/1.2 "Courier New",
    monospace;
  color: #273b2d;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cash-receipt .transfer-line,
.bill .transfer-line {
  padding-top: 7px;
  border-top: 1px dashed #b2a994;
}
.log-row .transfer-line {
  justify-content: flex-start;
}
@media (max-width: 420px) {
  .transfer-line,
  .cash-receipt .transfer-line {
    column-gap: 6px;
  }
  .transfer-parties,
  .cash-receipt .transfer-parties {
    gap: 3px;
  }
}
