/* Compact vertical receipt; every original item/payment value remains in Full invoice details. */
.finance-expanded-stack{display:flex;flex-direction:column;gap:8px;width:100%;max-width:720px;margin:4px 0;min-width:0}
.invoice-receipt{padding:14px 16px;border:1px solid #314858;border-radius:10px;background:#0e1a26;color:#edf3f7;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
.invoice-receipt *{box-sizing:border-box}
.invoice-receipt-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #2b4050}
.invoice-receipt-header>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.invoice-receipt h3{margin:0;font-size:16px;line-height:1.35;font-weight:700;color:#edf3f7}
.invoice-receipt-header p{margin:0;color:#b3c5d1;font-size:12px}
.invoice-receipt-status{flex-shrink:0;padding:3px 8px;border-radius:6px;background:#233a4a;color:#c5dfef;font-size:12px;font-weight:650;text-transform:capitalize}
.invoice-receipt-status.is-paid{background:#193d37;color:#9ce3cc}
.invoice-receipt h4{font-size:13px;line-height:1.4;font-weight:650;margin:16px 0 8px;color:#b3c5d1}
.invoice-receipt h4.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.invoice-receipt-services{padding:12px 0}
.invoice-receipt-services article{padding:0 0 10px;margin:0 0 10px;border-bottom:1px solid #273c4b}
.invoice-receipt-services article:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}
.invoice-receipt-service-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;min-width:0}
.invoice-receipt h5{font-size:17px;font-weight:650;line-height:1.4;margin:0;color:#edf3f7;max-width:60ch;text-wrap:pretty;min-width:0}
.invoice-receipt-service-head>strong{flex-shrink:0;max-width:48%;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.invoice-receipt-variation,.invoice-receipt-quantity{margin:3px 0 0;color:#b3c5d1;font-size:12px}
.invoice-receipt dl{margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.invoice-receipt-pair{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:4px 0;min-width:0}
.invoice-receipt dt{margin:0;color:#b3c5d1;min-width:0;flex:1}
.invoice-receipt dd{margin:0;color:#edf3f7;text-align:right;font-weight:600;font-variant-numeric:tabular-nums;max-width:58%;overflow-wrap:anywhere}
.invoice-receipt .item-total{padding-top:7px;margin-top:3px;border-top:1px solid #273c4b}
.invoice-receipt-totals{margin:0;padding-top:8px;border-top:1px solid #314858}
.invoice-receipt .customer-tip dt,.invoice-receipt .customer-tip dd{color:#ffd18c}
.invoice-receipt .invoice-total{border-top:1px solid #314858;margin-top:6px;padding-top:9px;font-size:16px}
.invoice-receipt .invoice-total dt{color:#edf3f7;font-weight:650}
.invoice-receipt .amount-paid dt,.invoice-receipt .amount-paid dd{color:#92e0c8}
.invoice-receipt .refund-total dt,.invoice-receipt .refund-total dd{color:#ffc098}
.invoice-receipt .invoice-receipt-note{font-size:12px;line-height:1.6;color:#b3c5d1;margin:10px 0 0;max-width:70ch}
.invoice-receipt-payment{margin-top:10px;padding-top:8px;border-top:1px solid #314858}
.invoice-receipt-payment>summary{font-size:13px;color:#c5dfef;font-weight:600;cursor:pointer;padding:4px 0;line-height:1.5;min-height:28px}
.invoice-receipt-payment>summary:hover{color:#edf3f7}
.invoice-receipt-payment>summary:focus-visible{outline:2px solid #79d9bd;outline-offset:3px;border-radius:3px}
.invoice-receipt-line-detail{padding:10px 0;border-bottom:1px solid #273c4b}
.invoice-receipt-line-detail h5{font-size:15px;margin-bottom:6px}
.invoice-receipt-payment[open]>dl{margin-top:8px}
.invoice-receipt-entry{padding:8px 0;border-top:1px solid #273c4b;margin-top:8px}
.invoice-receipt-entry p{margin:3px 0;color:#b3c5d1;font-size:12px}
.invoice-receipt-entry strong{color:#edf3f7;font-size:14px;font-variant-numeric:tabular-nums}
.invoice-receipt-warnings{border-top:1px solid #314858;margin-top:12px;padding-top:8px;color:#ffd18c;font-size:12px;line-height:1.6}
.invoice-receipt-warnings p{margin:5px 0;max-width:70ch}
.finance-expanded-stack>.finance-job-details{padding:8px 0;border-top:1px solid #314858}
.finance-expanded-stack>.finance-job-details>summary{font-weight:600;color:#b3c5d1;cursor:pointer;min-height:28px}
.finance-expanded-stack .finance-detail-grid{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.finance-expanded-stack .finance-detail-grid>div{display:flex;flex-direction:column;gap:3px}
.finance-expanded-stack .finance-profit-explanation{line-height:1.6;max-width:70ch}
@media(max-width:600px){.finance-expanded-stack{gap:6px;max-width:none}.invoice-receipt{padding:12px;border-radius:9px}.invoice-receipt-header{gap:8px}.invoice-receipt-header>div{gap:4px 7px}.invoice-receipt h3{font-size:15px}.invoice-receipt h5{font-size:16px}.invoice-receipt-service-head{gap:10px}.invoice-receipt-service-head>strong{font-size:14px}.invoice-receipt-pair{gap:12px}.invoice-receipt dd{max-width:53%}}
