/* Cash summaries use the same ledger and timezone as the detailed report. */
.billing-summary{--bs-ink:#27324a;--bs-muted:#7a8498;--bs-border:#e0e5ef;--bs-purple:#5148e5;--bs-orange:#c68a39;color:var(--bs-ink)}
.billing-summary button,.billing-summary select,.billing-summary input{font-family:inherit;font-size:12px;box-shadow:none}
.billing-summary button{cursor:pointer}
.billing-summary button:focus-visible,.billing-summary input:focus-visible,.billing-summary select:focus-visible,.billing-summary a:focus-visible,.billing-summary summary:focus-visible,.bs-chart:focus-visible{outline:2px solid #7069e9;outline-offset:3px}
.bs-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.bs-presets{display:flex;gap:3px;background:#e9ecf4;padding:4px;border-radius:8px;margin-bottom:1px;flex:none}
.bs-presets button{min-height:31px;padding:5px 13px;border:0;border-radius:5px;background:transparent;color:#69748b;font-weight:500}
.bs-presets button:hover{color:var(--bs-purple)}
.bs-presets button[aria-pressed="true"]{background:#fff;color:var(--bs-purple);box-shadow:0 1px 4px #2932530d;font-weight:600}
.bs-date-form{display:flex;align-items:flex-end;gap:9px;margin:0;flex:1;justify-content:flex-end}
.billing-summary .bs-toolbar label{font-size:11px;color:#7a8498;font-weight:400;margin:0}
.billing-summary .bs-toolbar input{display:block;width:140px;height:36px;border:1px solid #d9deeb;border-radius:6px;background:#fff;color:#526077;padding:7px 9px;margin-top:5px}
.bs-date-divider{align-self:flex-end;line-height:36px;color:#8c95a7;font-size:12px}
.bs-apply{height:36px;border:1px solid #d9deeb;border-radius:6px;padding:0 15px;background:#fff;color:#535e77;font-weight:500}
.bs-apply:hover{border-color:#a5a1eb;color:var(--bs-purple)}
.billing-summary .bs-environment select{height:36px;min-width:111px;width:auto;display:block;margin-top:5px;border-radius:6px;border:1px solid #d9deeb;padding:5px 26px 5px 10px;color:#526077;background:#fff}
.bs-validation{margin:8px 0;color:#b45335;font-size:12px;line-height:1.6}
.bs-validation:empty{display:none}
.bs-period{display:flex;align-items:center;gap:12px;justify-content:space-between;color:#8a93a5;font-size:11px;margin:16px 1px 13px;flex-wrap:wrap}
.bs-period>span:first-child{color:#677289;font-size:12px}
.bs-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.bs-metric{min-width:0;background:#fff;border:1px solid var(--bs-border);border-radius:9px;padding:21px 22px 18px;position:relative;overflow:hidden}
.bs-metric>span{color:#6d7890;font-size:12px}
.bs-metric>strong{display:block;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;letter-spacing:-.6px;font-size:30px;line-height:1.45;font-weight:620;margin:10px 0 5px}
.bs-metric>strong>small{color:#7b8498;font-size:12px;font-weight:400;margin-left:8px;letter-spacing:0}
.bs-metric-income>strong{color:var(--bs-purple)}
.bs-chart-card{background:#fff;border:1px solid var(--bs-border);border-radius:10px;padding:23px 24px 18px}
.bs-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.bs-chart-heading h2{font-size:16px;margin:0;font-weight:600;color:#2d3850}
.bs-legend{display:flex;align-items:center;gap:20px;font-size:11px;color:#788299;flex-wrap:wrap}
.bs-legend span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.bs-legend i{display:inline-block;width:19px;height:0;border-top:2px solid var(--bs-purple)}
.bs-legend .bs-refund-key{border-top-color:var(--bs-orange);border-top-style:dashed}
.bs-chart{display:block;width:100%;height:auto;min-height:180px;max-height:330px;overflow:visible;border-radius:5px}
.bs-chart-host{width:100%;min-width:0}
.bs-chart text{font-size:11px;fill:#8e97a9;font-family:inherit}
.bs-grid-line{stroke:#edf0f6;stroke-width:1}
.bs-income-area{fill:#5148e50b;stroke:none}
.bs-income-line,.bs-refund-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none}
.bs-income-line{stroke:var(--bs-purple)}
.bs-refund-line{stroke:var(--bs-orange);stroke-width:2;stroke-dasharray:5 5}
.bs-income-dot{fill:var(--bs-purple)}
.bs-refund-dot{fill:var(--bs-orange)}
.bs-cursor{stroke:#bfc6d6;stroke-width:1;stroke-dasharray:3 4;pointer-events:none}
.bs-day-detail{display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:#f7f8fc;border:1px solid #eff1f7;border-radius:6px;padding:12px 15px;margin:14px 0 0;font-size:11px;line-height:1.6;color:#7b8599;min-height:44px}
.bs-day-detail>strong{font-size:12px;font-weight:500;color:#515e77}
.bs-day-detail b{font-weight:500;color:#485671;font-variant-numeric:tabular-nums;margin-left:4px}
.bs-empty-note{font-size:12px;color:#929aac;background:#f8f9fc;padding:10px 12px;border-radius:5px;margin-bottom:12px}
.bs-sandbox-note{background:#fff7e9;color:#956a30;border:1px solid #f1dfbe;border-radius:7px;padding:11px 14px;font-size:12px;line-height:1.6;margin-top:15px}
.bs-report-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:16px}
.bs-daily{min-width:0;flex:1;background:#fff;border:1px solid var(--bs-border);border-radius:8px;overflow:hidden}
.bs-daily>summary{padding:14px 18px;font-size:12px;color:#647087;cursor:pointer}
.bs-daily>summary>span{display:inline-block;margin-left:10px;color:#9ba3b3;font-size:11px}
.bs-report-link{flex:none;font-size:12px;color:#5850cc;padding:14px 0}
.bs-report-link:hover{color:#3c33be}
.bs-report-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 16px;max-width:310px;flex:none}
.bs-export-link{font-size:12px;color:#5850cc;border:1px solid #d9dced;border-radius:6px;padding:9px 13px;background:#fff;white-space:nowrap}
.bs-export-link:hover{border-color:#a8a1e8;background:#fafaff}
.bs-table-wrap{overflow-x:auto;padding:0 18px 13px}
.billing-summary .bs-table-wrap table{font-variant-numeric:tabular-nums;font-size:12px;min-width:460px}
.billing-summary .bs-table-wrap th,.billing-summary .bs-table-wrap td{font-size:12px;text-align:right;color:#67728a;border-color:#edf0f6;padding:10px 9px;font-weight:400;white-space:nowrap}
.billing-summary .bs-table-wrap thead th{font-size:11px;color:#929bad;font-weight:400}
.billing-summary .bs-table-wrap th:first-child{text-align:left}
.bs-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bs-loading,.bs-error{margin:18px 0;background:#fff;border:1px solid var(--bs-border);border-radius:10px;padding:44px 24px;color:#7b8599;font-size:13px;min-height:280px;line-height:1.7}
.bs-loading{display:flex;align-items:center;justify-content:center;gap:10px}
.bs-loading-dot{width:7px;height:7px;border-radius:50%;background:#796ff0}
.bs-error strong{display:block;color:#9e573c;font-size:15px;margin-bottom:8px}
.bs-error p{margin:0 0 20px}
.bs-error button{border:1px solid #d9deeb;border-radius:6px;background:#fff;color:#5350c5;padding:8px 14px;margin-right:18px}
.bs-error a{color:#67748d;font-size:12px}
@media(min-width:1300px){.bs-metric>strong{font-size:34px}}
@media(max-width:1100px){.bs-toolbar{gap:12px}.bs-date-form{flex:initial}.bs-metrics{gap:12px}.bs-metric{padding:18px 16px}.bs-metric>strong{font-size:27px}.bs-chart-card{padding:20px}.bs-day-detail{gap:16px}}
@media(max-width:760px){.bs-toolbar{align-items:center}.bs-date-form{order:3;flex-basis:100%;justify-content:flex-start}.bs-presets button{padding:5px 10px}.bs-environment{margin-left:auto!important}.billing-summary .bs-environment select{margin-top:3px;height:34px}.bs-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.bs-metric{padding:16px}.bs-metric>strong{font-size:27px}.bs-chart-card{padding:18px 14px 14px}.bs-chart-heading{gap:12px;align-items:flex-start}.bs-legend{gap:9px;font-size:10px}.bs-chart{min-height:170px}.bs-day-detail{gap:8px 16px;padding:10px 12px}.bs-day-detail>strong{flex-basis:100%}.bs-report-row{flex-direction:column;gap:0}.bs-daily{width:100%}.bs-report-link{align-self:flex-end}.bs-period{gap:5px;margin-top:14px}}
@media(max-width:440px){.billing-summary .bs-toolbar input{width:123px;font-size:11px;padding:7px}.bs-date-form{gap:6px}.bs-apply{padding:0 10px}.bs-metric{padding:14px 12px}.bs-metric>strong{font-size:25px}.bs-chart-heading{flex-direction:column;margin-bottom:12px}}
@media(max-width:760px){.bs-report-actions{align-self:flex-end;max-width:100%;margin-top:8px}}
