/*
 * «Resekvitton» (taxi/receipts.html), the page's own look on top of tokens.css, admin-v2.css and page.css (round 47, panel
 * redesign R16; it was the page's inline style block). The period's three sums as tiles, the filters in a bar, the receipts in
 * one card with the fare at the end of each, the pager, and the receipt itself in a dialog with its amounts at the end, as on
 * paper. Colours only through the panel's variables, so light and dark both follow the theme button; logical properties, so
 * Arabic mirrors by itself (the pager's arrows are turned for right-to-left). Bigger, calmer type (owner, note 86).
 */

/* ---- the line icons beside the words (they were glyphs), and the arrows turned for right-to-left ---- */
.rc-ico { width: 18px; height: 18px; flex: none; }
.pg-btn.sm .rc-ico { width: 16px; height: 16px; }
[dir="rtl"] .rc-flip { transform: scaleX(-1); }

/* ---- the header, the sums and the filters ---- */
.rc-page .pg-sub { font-size: 16px; line-height: 1.5; }
.rc-page .pg-head .pg-btn { min-height: 42px; padding: 9px 20px; font-size: 15px; }
.rc-page .pg-note { font-size: 15px; }
.rc-page .pg-kpi-value { font-size: 34px; line-height: 1.08; margin-block: 6px 2px; }
@media (max-width: 640px) { .rc-page .pg-kpi-value { font-size: 26px; } }
.rc-page .pg-bar input, .rc-page .pg-bar select { min-height: 44px; font-size: 16px; }
.pg-bar input[type="date"] { min-width: 0; }

/* ---- the list of receipts (each an item of the pattern) ---- */
.rc-page .pg-card-title { font-size: 18px; }
.rc-page .pg-card-sub { font-size: 15px; }
.rc-page .pg-empty { font-size: 16px; }
.receipt-list { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.receipt-list:empty { display: none; }
.receipt-list .pg-item { padding: 14px 16px; }
.receipt-skel { margin: 12px; }
.item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.item-name { font-size: 16px; font-weight: 700; color: var(--pg-text); overflow-wrap: anywhere; }
.item-fare { font-size: 18px; font-weight: 800; color: var(--pg-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-sub { font-size: 15px; color: var(--pg-muted); margin-top: 3px; overflow-wrap: anywhere; }
.item-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.item-facts { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 15px; line-height: 1.5; color: var(--pg-text); min-width: 0; }
.item-facts .k { color: var(--pg-muted); }
.item-foot .pg-btn.sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.list-state { margin: 12px; }

/* ---- the pager ---- */
.rc-page .pg-list-foot { font-size: 15px; padding-block: 6px 18px; }
.rc-page .pg-list-foot .pg-btn.sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---- the receipt: its lines, the amounts at the end, as on paper ---- */
.rc-page .modal-header h3 { font-size: 18px; }
.receipt-facts.pg-facts.lines dt, .receipt-facts.pg-facts.lines dd { font-size: 15px; line-height: 1.45; }
.receipt-facts dd { text-align: end; font-variant-numeric: tabular-nums; }
.receipt-facts dd.total { font-weight: 800; }
.receipt-note { font-size: 15px; line-height: 1.5; color: var(--pg-muted); margin: 14px 0 0; }
.rc-page .modal-footer .pg-btn.sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
@media (max-width: 640px) {
  .receipt-facts dd { text-align: start; }
  .item-foot .pg-btn.sm { flex: 1 1 100%; }
}
