/* Payments tab, in the same look as Network Trends: tone-step surfaces (tan cards on the sheet), no outlines or shadows.
   Table lines are the schedule site's data-table lines. */
#tab-payments { font-size: 15px; line-height: 1.5; }
#tab-payments .muted { font-size: 15px; margin: 0; }
#tab-payments h2 { font-size: 20px; margin: 0; }

/* Cash back: the total on the left, what is left on the right, one bar with the $5,000 steps under it. */
.pay-cb { background: var(--tan); border-radius: 10px; padding: 24px; margin-top: 20px; }
.pay-cb-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 32px; margin-top: 10px; }
.pay-cb-fig { display: grid; gap: 2px; }
.pay-cb-fig strong { font: 600 44px/1 var(--font-head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pay-cb-fig.right { text-align: right; }
.pay-cb-fig.right strong { font-size: 24px; }
.pay-cb-fig span { color: var(--ink2); }
.pay-bar-wrap { position: relative; margin: 20px 0 30px; }
.pay-bar { height: 14px; border-radius: 7px; background: var(--white); overflow: hidden; }
.pay-fill { height: 100%; width: 0; border-radius: 7px; background: var(--green); }
.pay-mark { position: absolute; top: 0; width: 2px; height: 14px; margin-left: -1px; }
.pay-mark::before { content: ""; position: absolute; inset: 0; background: var(--ink3); }   /* the tick is drawn apart from its label, which sits on the card below it */
.pay-mark.reached::before { background: var(--ink); }
.pay-mark:last-child { margin-left: -2px; }
.pay-mark span { position: absolute; top: 20px; right: 0; transform: translateX(50%); font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-mark:last-child span { transform: none; }

/* Payment history. */
.pay-history { margin-top: 32px; }
.pay-scroll { overflow-x: auto; margin-top: 10px; }
.pay-table { border-collapse: collapse; width: 100%; min-width: 620px; }
.pay-table th { text-align: left; font-weight: 400; font-size: 13px; color: var(--ink2); padding: 10px; border-bottom: 1px solid var(--line); }
.pay-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pay-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pay-id { font-variant-numeric: tabular-nums; color: var(--ink2); }
.pay-amt { font-weight: 600; }
.pay-toggle { min-height: 36px; min-width: 64px; }
.pay-table tr.open td { border-bottom-color: transparent; }
.pay-detail > td { padding: 0 10px 14px; }
.pay-quotes { border-collapse: collapse; width: 100%; background: var(--tan); border-radius: 8px; }
.pay-quotes th { border-bottom: 0; padding: 10px 14px 4px; }
.pay-quotes td { border-bottom: 0; padding: 5px 14px; }
.pay-quotes tr:last-child td { padding-bottom: 12px; }
.pay-quotes em { color: var(--ink2); }
.pay-none, .pay-empty { margin: 0; padding: 14px; border-radius: 8px; background: var(--tan); color: var(--ink2); }
.pay-empty { padding: 28px; text-align: center; margin-top: 10px; }
.pay-foot { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-csv { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pay-csv:hover { text-decoration-color: var(--ink); }
.pay-csv svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-foot span { font-size: 13px; color: var(--ink2); }
#pay-state .quiet { margin-left: 4px; }
@media (max-width: 700px) { .pay-cb { padding: 18px; } .pay-cb-fig strong { font-size: 36px; } .pay-cb-fig.right { text-align: left; } }
