/* R47 — Billing is a one-day processing queue: dense by default, one client expanded at a time. */
.billing-r47 .r45-review-head{display:none}.r47-queue-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:16px 0 10px}.r47-queue-head h2{margin:2px 0 4px;font-size:1.3rem}.r47-queue-head p{margin:0;max-width:760px;color:var(--muted);font-size:.82rem;line-height:1.4}.r47-queue-progress{display:grid;grid-template-columns:auto auto;gap:1px 8px;align-items:end;padding:8px 12px;border:1px solid #dce7e0;border-radius:12px;background:#f7faf8;min-width:120px}.r47-queue-progress strong{font-size:1.2rem;color:#153f30}.r47-queue-progress span{font-size:.68rem;color:var(--muted)}.r47-queue-progress b{grid-column:1/-1;font-size:.66rem;color:#557065;font-weight:700}.r47-queue-list{display:grid;gap:6px}.r47-queue-row{background:#fff;border:1px solid #dfe7e2;border-radius:12px;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease}.r47-queue-row.state-attention{border-left:4px solid #c99028}.r47-queue-row.state-ready{border-left:4px solid #3d8a66}.r47-queue-row.state-draft{border-left:4px solid #7a8b83}.r47-queue-row.state-send{border-left:4px solid #4d79a8}.r47-queue-row.state-done,.r47-queue-row.state-no-charge{background:#fbfcfb}.r47-queue-row.state-done:not(.open),.r47-queue-row.state-no-charge:not(.open){opacity:.72}.r47-queue-row.open{border-color:#aac8b7;box-shadow:0 5px 18px rgba(22,57,43,.07)}.r47-queue-summary{appearance:none;width:100%;border:0;background:transparent;display:grid;grid-template-columns:minmax(260px,1fr) 120px 110px 22px;gap:14px;align-items:center;padding:9px 12px;text-align:left;color:inherit;cursor:pointer}.r47-queue-summary:hover{background:#f7faf8}.r47-client{display:grid;min-width:0;gap:2px}.r47-client strong{font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r47-client small{font-size:.68rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r47-amount{display:grid;text-align:right;gap:1px}.r47-amount strong{font-size:.84rem}.r47-amount small{font-size:.62rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.r47-status{justify-self:end;display:inline-flex;align-items:center;justify-content:center;min-width:88px;border-radius:999px;padding:4px 8px;font-size:.65rem;font-weight:800;white-space:nowrap}.r47-status.attention{background:#fff4dc;color:#895710}.r47-status.ready{background:#e9f5ed;color:#236247}.r47-status.draft{background:#edf0ee;color:#56675f}.r47-status.send{background:#eaf2fb;color:#3c6791}.r47-status.done{background:#edf6f0;color:#3f6b57}.r47-status.no-charge{background:#f1f3f2;color:#66716c}.r47-chevron{font-size:1.1rem;color:#6d7d75;text-align:center}.r47-expanded{border-top:1px solid #e5ece8;background:#fff;padding:12px 0 0}.billing-r47 .r47-expanded .r45-contract-story{margin:0 14px 10px}.billing-r47 .r47-expanded .r45-story-section{padding:0 14px}.billing-r47 .r47-expanded .r45-story-item{padding:8px 0}.billing-r47 .r47-expanded .r45-item-copy>small{font-size:.67rem}.r47-billing-actions{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:11px 14px;background:#f7faf8;border-top:1px solid #e5ece8}.r47-billing-actions>div:first-child{display:grid;gap:2px}.r47-billing-actions>div:first-child span{font-size:.68rem;color:var(--muted)}.r47-billing-actions>div:first-child strong{font-size:1rem;color:#143d2e}.r47-billing-actions .heading-actions{justify-content:flex-end}.r45-story-item.already-invoiced{opacity:.7}.r45-story-item.already-invoiced .r45-item-icon{background:#edf2ef;color:#52685e}.r47-excluded{margin-top:12px}
@media(max-width:900px){.r47-queue-summary{grid-template-columns:minmax(180px,1fr) 105px 100px 20px}.r47-client small{white-space:normal}.r47-billing-actions{align-items:flex-start;flex-direction:column}.r47-billing-actions .heading-actions{justify-content:flex-start}}
@media(max-width:650px){.r47-queue-head{align-items:flex-start;flex-direction:column}.r47-queue-summary{grid-template-columns:minmax(0,1fr) auto 20px;gap:8px}.r47-amount{grid-column:1;text-align:left;display:flex;gap:5px;align-items:baseline}.r47-status{grid-column:2;grid-row:1/3}.r47-chevron{grid-column:3;grid-row:1/3}.r47-client strong{white-space:normal}.r47-client small{white-space:normal}.r47-billing-actions .heading-actions{display:grid;width:100%}.r47-billing-actions .heading-actions .button{width:100%}}
