/* Export is a separate document, rendered at 2x for reading on a phone. */
.bill-capture { position: absolute; top: 0; left: -10000px; width: 720px; pointer-events: none; }
.bill {
  box-sizing: border-box;
  width: 720px;
  padding: 24px;
  background: #edf2e3;
  color: var(--j-ink, #414e3d);
  font: 24px/1.5 var(--j-font, sans-serif);
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}
.bill *, .bill *::before, .bill *::after { box-sizing: border-box; margin: 0; padding: 0; }
.bill-paper { position: relative; padding: 26px 28px 22px; border: 1px solid #dce4cd; border-radius: 26px; background: var(--j-paper, #fffffb); }
.bill-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--j-line, #e1e7d5); }
.bill-eyebrow { display: block; color: #899777; font-size: 17px; letter-spacing: 1.5px; margin-bottom: 7px; }
.bill h1 { color: var(--j-green-dark, #4d653e); font-family: var(--j-heading-font); font-size: 43px; font-weight: 400; letter-spacing: 2px; line-height: 1.35; }
.bill-date { display: block; margin-top: 7px; color: #96a087; font-size: 20px; letter-spacing: 1px; }
.bill-header-art { display: block; width: 100px; height: auto; max-width: none; }

.bill-section { margin-top: 24px; }
.bill-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.bill-section-heading h2 { display: flex; align-items: baseline; gap: 10px; color: var(--j-ink, #414e3d); font-family: var(--j-heading-font); font-size: 28px; font-weight: 400; letter-spacing: .6px; }
.bill-section-heading h2 i { color: #a2b28a; font: 400 18px/1.5 "Melody Rounded", sans-serif; letter-spacing: 1px; }
.bill-section-heading > span { color: #8a967b; font-size: 21px; }
.bill-section-heading > span b { color: var(--j-green-dark, #4d653e); font-weight: 600; }
.bill-record { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; color: #8a967b; font-size: 21px; }
.bill-record b { color: var(--j-green, #71875b); font-weight: 600; }

.bill-medals { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: center; }
.bill-medals th, .bill-medals td { padding: 6px 5px; font-size: 24px; line-height: 1.45; font-weight: 400; }
.bill-medals thead { color: #82926f; }
.bill-medals thead th { font-size: 21px; padding-block: 9px; background: #f0f4e8; }
.bill-medals thead th:first-child { border-radius: 11px 0 0 11px; }
.bill-medals thead th:last-child { border-radius: 0 11px 11px 0; }
.bill-medals th:first-child { text-align: left; padding-left: 13px; }
.bill-medals tbody tr + tr > * { border-top: 1px solid #edf0e5; }
.bill-medals .bill-stars { color: var(--j-green-dark, #4d653e); font-weight: 600; }
.bill-coefficients { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 15px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--j-line, #e1e7d5); color: #97a087; font-size: 19px; }
.bill-coefficients > span { white-space: nowrap; }
.bill-coefficients b { color: #82916f; font-weight: 400; }

.bill-payments { margin-top: 26px; }
.bill-payments .bill-section-heading { margin-bottom: 14px; }
.bill-payment-list { display: grid; gap: 12px; }
.bill-payment { min-width: 0; padding: 13px 15px; border: 1px solid #e3e9d9; border-radius: 17px; background: #fffffc; }
.bill-pay-row { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.5fr) auto; align-items: center; gap: 12px; }
.bill-pay-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bill-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 1.45em; aspect-ratio: 1; border-radius: 50% 50% 50% 18%; background: #eaf0dc; color: #6e8456; font-size: 24px; }
.bill-avatar[data-tone="1"] { background: #f1eedc; color: #8b8558; }
.bill-avatar[data-tone="2"] { background: #e5eee1; color: #728668; }
.bill-avatar[data-tone="3"] { background: #e8ede6; color: #758372; }
.bill-avatar[data-tone="4"] { background: #f2eddf; color: #9b8967; }
.bill-pay-name { min-width: 0; color: var(--j-ink, #414e3d); font-size: 26px; line-height: 1.35; font-weight: 400; }
.bill-pay-name small { display: block; font-size: 17px; color: #859477; font-weight: 400; white-space: nowrap; }
.bill-pay-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; font-size: 18px; color: #849274; line-height: 1.45; }
.bill-pay-meta span { display: flex; flex-direction: column; min-width: 0; }
.bill-pay-meta b { color: #617151; font-size: 22px; font-weight: 400; overflow-wrap: anywhere; }
.bill-balance { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 8px; padding: 7px 11px; border-radius: 12px; white-space: nowrap; }
.bill-balance small { font-size: 21px; }
.bill-balance b { font-size: 31px; font-weight: 600; line-height: 1.35; }
.bill-balance i { font-size: 19px; margin-right: 3px; font-style: normal; font-weight: 400; }
.bill-balance.refund { color: #5e7d45; background: #edf3e4; }
.bill-balance.payin { color: #a47856; background: #f7eee3; }
.bill-balance.even { color: #879179; background: #eff2e8; font-size: 23px; }

/* One deposit and balance per role, followed by its own calculation. */
.bill-calculation { margin-top: 9px; padding: 8px 11px; border-radius: 11px; background: #f5f7ef; }
.bill-calc-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 12px; font-size: 18px; color: #97a087; }
.bill-calc-heading strong { font-size: 19px; font-weight: 400; color: #768962; }
.bill-quote-line { display: grid; grid-template-columns: repeat(var(--bill-players),minmax(0,1fr)); gap: 5px 12px; }
.bill-calc-heading + .bill-quote-line { margin-top: 5px; }
.bill-quote-line > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; min-width: 0; }
.bill-quote-line small { color: #788969; font-size: 19px; white-space: nowrap; }
.bill-quote-line b { color: #637451; font-size: 21px; font-weight: 400; overflow-wrap: anywhere; }
.bill-formula { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 10px; margin-top: 6px; padding-top: 5px; border-top: 1px solid #e5eadc; color: #7c8e69; font-size: 20px; line-height: 1.5; }
.bill-formula > span { overflow-wrap: anywhere; }
.bill-formula b { color: #6b8155; font-size: 20px; font-weight: 600; white-space: nowrap; }

.bill-income { padding: 20px 22px; border: 1px solid #dce5cb; border-radius: 19px; background: var(--j-green-soft, #edf2e2); }
.bill-income .bill-section-heading { margin-bottom: 16px; }
.bill-income h2 { color: var(--j-green-dark, #4d653e); }
.bill-income-people { display: grid; grid-template-columns: repeat(var(--bill-players),minmax(0,1fr)); gap: 17px; }
.bill-income-people > div { min-width: 0; }
.bill-income-people > div + div { padding-left: 15px; border-left: 1px solid #d3dec2; }
.bill-income-people span { display: block; font-size: 23px; color: #81936d; }
.bill-income-people strong { display: block; margin-top: 5px; color: var(--j-green-dark, #4d653e); font-size: 32px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.bill-income-people strong small { font-size: 19px; margin-right: 3px; font-weight: 400; }
.bill[data-car="41"] .bill-income-people { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 23px; }
.bill[data-car="41"] .bill-income-people > div { display: flex; align-items: baseline; justify-content: space-between; gap: 11px; padding-left: 0; border: 0; }
.bill[data-car="41"] .bill-income-people strong { margin-top: 0; }
.bill-footer { display: flex; align-items: center; justify-content: center; padding-top: 24px; color: #a1ae8e; font-size: 20px; letter-spacing: 1px; }
