.desk-stack {
  display: grid;
  gap: 24px;
}

.cash-session-empty .panel-body {
  display: grid;
  gap: 9px;
}

.cash-session-empty .btn {
  justify-self: start;
  margin-top: 5px;
}

.cash-register-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 18px var(--panel-gutter);
  border-bottom: 1px solid var(--sage);
  background: var(--sage-tint);
}

.cash-register-strip dl,
.desk-summary-list {
  margin: 0;
}

.cash-register-strip dt {
  color: var(--ink);
  font-weight: 680;
}

.cash-register-strip dd {
  margin: 3px 0 0;
  color: var(--green);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.cash-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 30px;
}

.cash-breakdown h3 {
  margin-bottom: 7px;
}

.desk-summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

.desk-summary-list > div:last-child {
  border-bottom: 0;
}

.desk-summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 730;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.desk-shortfall {
  color: var(--red);
}

.desk-form-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: var(--sage-tint);
  font-weight: 680;
}

.desk-form-total:empty {
  display: none;
}

.desk-form-total > strong {
  color: var(--green);
  font-size: 1.27rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.refund-amount { color: var(--green); font-variant-numeric: tabular-nums; }

.refund-fieldset {
  margin-inline: 0;
  border: 0;
  padding: 0;
}

.refund-fieldset legend {
  margin-bottom: 6px;
  padding: 0;
  font-weight: 730;
}

.refund-selection {
  max-height: min(290px, 32vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 4px;
}

.refund-item {
  border-bottom: 1px solid var(--line);
}

.refund-item-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 5px 2px;
  cursor: pointer;
}

.refund-item-choice input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}

.refund-item-restock {
  min-height: 38px;
  margin-inline-start: 27px;
  font-weight: 580;
}

.refund-tenders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.refund-footer > .form-error {
  margin-top: 9px;
}

.refund-history article {
  margin-top: 8px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.refund-history-lines {
  margin: 5px 0;
  padding: 0;
  list-style: none;
}

.refund-history-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}

.refund-history-lines li > strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.refund-history-lines button {
  padding-inline-start: 0;
}

@media (max-width: 760px) {
  .desk-stack {
    gap: 18px;
  }

  .cash-register-strip {
    display: grid;
  }

  .cash-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-controls > .primary {
    grid-column: 1 / -1;
  }

  .cash-controls > .btn {
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .cash-breakdown {
    grid-template-columns: 1fr;
  }

  .refund-selection {
    max-height: min(225px, 28vh);
  }
}
