/* Subscription workspace follows the approved white, compact component layout. */
.billing-reference{color:#181b19}
.billing-reference .page-heading{margin-bottom:24px}
.billing-reference .page-heading h1{font-size:30px;font-weight:700;letter-spacing:-1px;line-height:1.15}
.billing-reference .page-heading p{font-size:14px;line-height:1.6;color:#62666a;margin-top:7px}
.rb-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.95fr);gap:20px;align-items:start}
.rb-main,.rb-side{display:grid;gap:14px;min-width:0}
.workspace .billing-reference .card{padding:20px;border:1px solid #e0e4e3;border-radius:9px;background:#fff;box-shadow:none;color:#181b19}
.workspace .billing-reference .rb-plan{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff}
.workspace .billing-reference .rb-plan h2{font-size:22px;font-weight:700;letter-spacing:-.55px;line-height:1.25;margin:0;color:#181b19}
.rb-plan h2>span{font-size:15px;font-weight:600;letter-spacing:-.25px}
.workspace .billing-reference .rb-plan p{font-size:12px;color:#62666a;line-height:1.55;margin-top:6px}
.workspace .billing-reference h3{font-size:15px;font-weight:650;line-height:1.35;letter-spacing:-.2px;margin:0;color:#181b19}
.workspace .billing-reference .rb-charge{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#f9faf9}
.rb-charge>div{min-width:0}
.workspace .billing-reference .rb-charge .rb-amount{display:block;font-size:30px;font-weight:700;line-height:1.1;letter-spacing:-.8px;color:#181b19;margin-top:8px}
.workspace .billing-reference .rb-charge .rb-no-charge{display:block;font-size:18px;font-weight:650;line-height:1.3;color:#181b19;margin-top:9px}
.workspace .billing-reference .rb-charge p{font-size:12px;line-height:1.6;color:#62666a;margin-top:7px}
.rb-info-line{display:flex;align-items:flex-start;gap:9px;padding:10px 13px;border:1px solid #e3e6e7;border-radius:7px;background:#f1f4f5;font-size:12px;line-height:1.5;color:#4e5557}
.rb-info-line>svg{height:16px;width:16px;margin-top:1px;flex-shrink:0}
.rb-history h3{margin-bottom:16px!important}
.billing-reference .rb-history table{width:100%;font-size:13px;border-collapse:collapse}
.billing-reference .rb-history th{padding:10px 8px;background:#f7f8f7;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:#484e4c;border-bottom:1px solid #e1e5e2}
.billing-reference .rb-history td{padding:11px 8px;border-bottom:1px solid #edf0ed;color:#242a25}
.billing-reference .rb-history tr:last-child td{border-bottom:0}
.billing-reference .rb-history th:last-child,.billing-reference .rb-history td:last-child{text-align:right}
.billing-reference .rb-history .rb-history-empty{padding:28px 8px;text-align:center;color:#727875;font-size:13px}
.rb-actions{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap}
.workspace .billing-reference .rb-actions .btn{flex:1 1 180px;min-height:42px;border-radius:7px;font-size:13px;font-weight:600;padding:10px 15px}
.workspace .billing-reference .btn.small{min-height:38px;padding:8px 13px;border-radius:6px;font-size:12px;font-weight:600}
.workspace .billing-reference .btn.danger{background:#fff;color:#b52b31;border-color:#e8a7aa}
.workspace .billing-reference .btn.danger:hover{background:#fff5f5;border-color:#d87379}
.workspace .billing-reference .rb-provider-note{font-size:12px;line-height:1.65;color:#62666a;margin:0}
.workspace .billing-reference .rb-state{display:grid;grid-template-columns:24px minmax(0,1fr);gap:11px;padding:18px 17px}
.rb-state-icon{display:grid;place-items:center;height:24px;width:24px}
.rb-state-icon svg{width:23px;height:23px;stroke-width:1.7}
.rb-state-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.rb-state-title .badge{font-size:10px;padding:3px 7px;flex-shrink:0}
.workspace .billing-reference .rb-state p{font-size:12px;line-height:1.6;color:inherit;margin-top:7px;max-width:310px}
.workspace .billing-reference .rb-state .btn{margin-top:13px;min-height:36px;font-size:12px;padding:7px 12px;border-radius:6px}
.workspace .billing-reference .rb-state-active{background:#f0f7f0;border-color:#dce9da;color:#285c2b}
.workspace .billing-reference .rb-state-error{background:#fff0f1;border-color:#f0d6d8;color:#9d252e}
.workspace .billing-reference .rb-state-pending{background:#fff6e4;border-color:#f0e0ba;color:#8b5415}
.workspace .billing-reference .rb-state-testing{background:#f0f5f8;border-color:#dae5eb;color:#3b6178}
.workspace .billing-reference .rb-state-cancelled{background:#f2f4f5;border-color:#dfe3e5;color:#626970}
.workspace .billing-reference .rb-rules{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;background:#f4f6f7;border-color:#e2e7e9}
.rb-rules-icon svg{height:18px;width:18px;color:#4e565b;margin-top:1px}
.workspace .billing-reference .rb-rules p{font-size:12px;line-height:1.65;margin-top:8px;color:#62666a}
.workspace .billing-reference .rb-store-summary{padding:18px}
.rb-store-summary dl{display:grid;margin:12px 0 0;gap:0}
.rb-store-summary dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;border-top:1px solid #ebeeec;padding:10px 0;font-size:12px;line-height:1.5}
.rb-store-summary dl>div:last-child{padding-bottom:0}
.rb-store-summary dt{color:#62666a}
.rb-store-summary dd{color:#252c27;font-weight:500;margin:0;text-align:right;overflow-wrap:anywhere}
@media(max-width:1080px){.rb-grid{grid-template-columns:minmax(0,1.45fr) minmax(230px,1fr);gap:16px}.workspace .billing-reference .rb-plan{align-items:flex-start;flex-wrap:wrap}.rb-state-title{flex-wrap:wrap}.workspace .billing-reference .rb-plan h2{font-size:20px}}
@media(max-width:760px){.rb-grid{grid-template-columns:minmax(0,1fr)}.rb-side{grid-template-columns:repeat(2,minmax(0,1fr))}.rb-side .rb-state{grid-column:1/-1}.workspace .billing-reference .rb-plan{align-items:center}.rb-state-title{flex-wrap:nowrap}}
@media(max-width:600px){.billing-reference .page-heading h1{font-size:26px}.billing-reference .page-heading p{font-size:13px}.workspace .billing-reference .card{padding:18px;border-radius:9px}.workspace .billing-reference .rb-plan h2{font-size:20px}.rb-plan h2>span{font-size:14px}.workspace .billing-reference .rb-plan{gap:13px}.workspace .billing-reference .rb-charge{align-items:flex-start;flex-wrap:wrap;gap:14px}.workspace .billing-reference .btn.small{min-height:44px;font-size:13px}.workspace .billing-reference .rb-actions .btn{min-height:46px;font-size:13px;flex-basis:100%}.rb-side{grid-template-columns:minmax(0,1fr)}.rb-side .rb-state{grid-column:auto}.workspace .billing-reference .rb-state .btn{min-height:44px}.rb-state-title .badge{font-size:11px}.billing-reference .rb-history table{font-size:12px}.rb-info-line{font-size:12px}}
