/* The sales back office (UI-7), on the tokens of application.css; panels, figures, the document
   view and the print page come from counter.css, the report tables from reports.css, the state
   tabs and form rows from workshop.css. */

.sales-page { display: flex; flex-direction: column; gap: 16px; }

/* Filter rows. */
.sales-filter { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.sales-filter .field { flex: 0 1 180px; min-width: 140px; }
.sales-filter__party { max-width: 480px; margin-bottom: 8px; }
.sales-totals { margin: 4px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-muted); }

/* Statement. */
.statement { display: flex; flex-direction: column; gap: 16px; }
.statement__action td { background: var(--bg-muted); }
.sales-write-off { gap: 8px; }
.statement-print section { margin-top: 16px; }
.statement-print .table-wrap { border: 0; }

/* Badges. */
.badge--refund { background: var(--warn-bg); color: var(--warn-ink); }
.badge--voucher-active { background: var(--ok-bg); color: var(--ok-ink); }
.badge--voucher-redeemed, .badge--voucher-issued { background: var(--info-bg); color: var(--info-ink); }
.badge--voucher-past_due, .badge--voucher-draft { background: var(--warn-bg); color: var(--warn-ink); }
.badge--voucher-expired, .badge--voucher-voided { background: var(--err-bg); color: var(--err-ink); }

/* The printed voucher. */
.voucher-print { text-align: center; }
.voucher-print .print__head { text-align: left; }
.voucher-print__amount { margin: 32px 0 8px; font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.voucher-print__code { margin: 0 0 24px; font-size: 24px; padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); }

@media print {
  .statement-print a { color: inherit; text-decoration: none; }
}
