/* Invoices and payments: the Money card on the staff job page, the payment schedule,
   and the customer's invoice under their job page link. */

.staff .money-sums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px; }
.staff .money-sums dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.staff .money-group { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; margin: 0; }
.staff .ms-grid { display: grid; grid-template-columns: 1.4fr .7fr .6fr .6fr; gap: 8px; align-items: end; }
@media (max-width: 640px) { .staff .money-sums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .staff .ms-grid { grid-template-columns: 1fr 1fr; } }

.customer .invoices { margin-top: 28px; }
.customer .invoices h2 { font-size: 20px; margin-bottom: 8px; }
.customer .invoice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.customer a.invoice-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; color: var(--ink); text-decoration: none; }
.customer a.invoice-row:hover { border-color: var(--blue); }
.customer .invoice-amount { text-align: right; white-space: nowrap; font-weight: 500; }
.customer .invoice-meta { color: var(--muted); font-size: 13.5px; margin: 0; }
.customer .invoice-paid { display: inline-block; background: var(--ok-wash); color: var(--ok); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; }

.customer .invoice { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; margin-top: 12px; }
.customer .invoice-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.customer .invoice-head h1 { font-size: 22px; }
.customer .invoice-due { text-align: right; }
.customer .invoice-due b { display: block; font-size: 26px; color: var(--black); }
.customer .invoice-lines { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.customer .invoice-lines td, .customer .invoice-lines th { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.customer .invoice-lines td:last-child, .customer .invoice-lines th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.customer .invoice-total th { color: var(--black); }
.customer .invoice-pay, .customer .invoice-receipt { margin-top: 18px; }
.customer .invoice-pay h2, .customer .invoice-receipt h2 { font-size: 18px; margin-bottom: 6px; }
.staff .milestone { padding: 10px 0; border-bottom: 1px solid var(--line); }
.staff .milestone:first-child { padding-top: 0; }
.staff .money table.t td.mono { white-space: nowrap; }
