/* BE v19 — restrained, responsive payment control in existing pages. */
.be-role-owner .be-bc-root,.be-role-owner .be-bc-client{--bc-line:#e9e4dc;color:#30383a}
.be-bc-nav{display:flex!important;gap:7px!important;flex-wrap:wrap!important;align-items:center!important;padding:5px!important}
.be-bc-nav>button{border-radius:8px!important;white-space:nowrap!important}
.be-bc-nav-more{position:relative;margin-left:auto;z-index:20;min-width:80px}
.be-bc-nav-more>summary{list-style:none;cursor:pointer;padding:11px 15px;border-radius:8px;color:#555;font-size:.86rem;font-weight:700;white-space:nowrap}
.be-bc-nav-more>summary::-webkit-details-marker{display:none}
.be-bc-nav-more[open]>summary{background:#fff}
.be-bc-nav-more:not([open])>div{display:none!important}
.be-bc-nav-more>div{position:absolute;right:0;top:calc(100% + 5px);z-index:30;min-width:194px;display:grid;gap:3px;padding:6px;border-radius:11px;background:white;border:1px solid #e9e4dc;box-shadow:0 16px 28px #14171620}
.be-bc-nav-more>div button{border:0;border-radius:7px;text-align:left;background:white;color:#353a3d;padding:12px;cursor:pointer;font-size:.84rem;min-height:41px}
.be-bc-nav-more>div button:hover,.be-bc-nav-more>div button.active{background:#f6f3ed}
.be-bc-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.be-bc-summary>div{display:grid;gap:6px;align-content:start;background:#fff;border:1px solid #e9e4dc;border-radius:13px;padding:18px;min-width:0}
.be-bc-summary small,.be-bc-summary span{font-size:.75rem;color:#788082;line-height:1.4}
.be-bc-summary strong{font-size:clamp(1.1rem,2vw,1.58rem);font-weight:850;color:#30383a;overflow-wrap:anywhere}
.be-bc-list,.be-bc-client{border:1px solid #e9e4dc!important;border-radius:14px!important;background:#fff!important;padding:19px!important}
.be-bc-list-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:13px}
.be-bc-list-head h2,.be-bc-client h2{font-size:1.15rem;margin:0;color:#333b3d!important}
.be-bc-list-head h3{font-size:1rem;margin:0;color:#333b3d!important}
.be-bc-list-head p{margin:5px 0 0;font-size:.8rem;color:#7b8283}
.be-bc-list-head select{min-height:40px;padding:9px;border:1px solid #e6e2d9;border-radius:9px;background:#fff;color:#424749;font-size:.84rem}
.be-bc-list input[data-bc-search]{width:100%;display:block;min-height:43px;border:1px solid #e3e1da;border-radius:10px;margin:10px 0 7px;padding:10px 12px;background:#fbfaf8;color:#343a3a;box-sizing:border-box}
.be-bc-payment-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:15px 5px!important;background:transparent!important;border:0!important;border-bottom:1px solid #ece7de!important;text-align:left!important;color:#333c3e!important;cursor:pointer;min-height:68px}
.be-bc-payment-row:hover,.be-bc-payment-row:focus-visible{background:#f9f7f2!important;outline:2px solid #c2ad8b;outline-offset:-2px}
.be-bc-payment-row[hidden]{display:none!important}
.be-bc-payment-row>span:first-child{flex:1;min-width:0;display:grid;gap:4px}
.be-bc-payment-row strong{font-size:.88rem;color:#323b3b!important}
.be-bc-payment-row small{font-size:.75rem;color:#777f81;white-space:normal}
.be-bc-payment-row>span:last-child{font-size:20px;color:#8b9290}
.be-bc-state{border:1px solid #e4e6e2;border-radius:30px;padding:5px 8px;font-size:.73rem;font-weight:750;color:#59635e;background:#f5f7f4;white-space:nowrap}
.be-bc-state.alert{color:#8b4c25;border-color:#f0dcc5;background:#fcf6ed}
.be-bc-fine{font-size:.73rem;color:#7b8284;line-height:1.6;margin:12px 0 0}
.be-bc-client{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.be-bc-membership{border:1px solid #e9e5df;border-radius:12px;margin:12px 0;padding:15px;background:#fcfbf9}
.be-bc-membership-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.be-bc-membership-head>div{display:grid;gap:4px}
.be-bc-membership-head strong{font-size:.94rem;color:#333b3c}
.be-bc-membership-head small{font-size:.75rem;color:#7c8182}
.be-bc-membership-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 3px}
.be-bc-membership-facts>div{display:grid;gap:5px;min-width:0}
.be-bc-membership-facts small{font-size:.72rem;color:#7a8081}
.be-bc-membership-facts strong{font-size:.84rem;color:#303a3b;overflow-wrap:anywhere}
.be-bc-manage{border-top:1px solid #ebe7e0;margin-top:14px;padding-top:12px}
.be-bc-manage>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:.84rem;font-weight:800;color:#63513b;padding:5px 0}
.be-bc-manage>summary::-webkit-details-marker{display:none}
.be-bc-manage-actions{display:flex;gap:8px;flex-wrap:wrap;padding:14px 0 0}
.be-bc-manage-actions>button{flex:0 1 auto;min-height:40px}
.be-bc-manage-actions>form{width:100%;display:grid;gap:8px}
.be-bc-manage-actions label,.be-bc-refund-form label{display:grid;gap:7px;font-size:.78rem;font-weight:700;color:#444}
.be-bc-manage-actions select,.be-bc-refund-form input,.be-bc-refund-form select{width:100%;max-width:100%;border:1px solid #e5e0d8;border-radius:9px;min-height:40px;padding:8px 10px;box-sizing:border-box;background:white;color:#363c3c;font-size:.86rem}
.be-bc-refund-form{display:grid;gap:12px;margin-top:12px;max-width:530px}
.be-bc-invoice{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ebe6dd}
.be-bc-invoice>div{flex:1;display:grid;gap:4px;min-width:0}
.be-bc-invoice strong{font-size:.84rem;color:#333b3e}
.be-bc-invoice small{font-size:.75rem;color:#7a7f80}
.be-bc-invoice a{font-size:.8rem;color:#65533b;white-space:nowrap;font-weight:750}
.be-bc-notice,.be-bc-member-notices{background:#fbf8f1;color:#6c5a3f;border:1px solid #ecddc4;border-radius:11px;padding:14px;font-size:.85rem}
.be-bc-member-notices{margin:12px 0;display:grid;gap:12px}
.be-bc-member-notices h2{font-size:1.1rem;margin:0;color:#584a37}
.be-bc-member-action{padding:12px;background:#fff;border:1px solid #eee1cc;border-radius:10px;display:grid;gap:8px;justify-items:start}
.be-bc-member-action p{font-size:.82rem;line-height:1.5;margin:0}
@media(max-width:820px){
 .be-bc-summary>div{padding:13px 11px}
 .be-bc-client,.be-bc-list{padding:14px!important}
 .be-bc-membership-facts{gap:9px}
}
@media(max-width:560px){
 .be-bc-summary{gap:6px}
 .be-bc-summary>div{padding:11px 7px}
 .be-bc-summary small,.be-bc-summary span{font-size:.65rem}
 .be-bc-summary strong{font-size:.97rem}
 .be-bc-nav{gap:1px!important}
 .be-bc-nav>button{padding:9px 8px!important;font-size:.75rem!important}
 .be-bc-nav-more{min-width:55px}
 .be-bc-nav-more>summary{padding:10px 7px;font-size:.75rem}
 .be-bc-membership-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .be-bc-payment-row{gap:7px}
 .be-bc-payment-row strong{font-size:.8rem}
 .be-bc-payment-row small{font-size:.71rem}
 .be-bc-invoice{flex-wrap:wrap}
 .be-bc-list-head select{max-width:100%}
}

/* v20: every billing section is a permanently visible tab.
   Override legacy .be-billing-tabs horizontal auto-scrolling, which clipped
   the old dropdown. A balanced grid stays predictable at every viewport. */
.be-role-owner .be-main .be-billing-hub .be-bc-nav {
 display:grid!important;
 grid-template-columns:repeat(6,minmax(0,1fr))!important;
 gap:7px!important;
 padding:6px!important;
 margin:10px 0 20px!important;
 border:1px solid #e9e4dc;
 border-radius:13px;
 background:#f7f6f3;
 max-width:100%;
 width:100%;
 box-sizing:border-box;
 overflow:visible!important;
 overflow-x:visible!important;
 overflow-y:visible!important;
 scrollbar-width:none;
 align-items:stretch!important;
}
.be-role-owner .be-main .be-billing-hub .be-bc-nav>.be-bc-tab {
 display:flex!important;
 align-items:center;
 justify-content:center;
 min-width:0!important;
 width:100%;
 min-height:44px!important;
 box-sizing:border-box!important;
 margin:0!important;
 padding:10px 9px!important;
 border:1px solid transparent!important;
 border-radius:9px!important;
 background:transparent!important;
 color:#575d5c!important;
 font-size:.82rem!important;
 font-weight:730!important;
 line-height:1.35;
 text-align:center;
 white-space:normal!important;
 overflow-wrap:break-word;
 cursor:pointer;
 transition:background-color .16s ease,color .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.be-role-owner .be-main .be-billing-hub .be-bc-nav>.be-bc-tab:hover{
 background:#fff!important;color:#30383a!important;border-color:#e7e0d5!important;
}
.be-role-owner .be-main .be-billing-hub .be-bc-nav>.be-bc-tab.active{
 background:#fff!important;color:#2e3434!important;
 border-color:#eee7df!important;box-shadow:0 2px 7px #1d1a1510!important;
 font-weight:830!important;
}
.be-role-owner .be-main .be-billing-hub .be-bc-nav>.be-bc-tab:focus-visible{
 outline:2px solid #9b805c!important;outline-offset:1px;
}
@media(max-width:980px){
 .be-role-owner .be-main .be-billing-hub .be-bc-nav{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;
 }
}
@media(max-width:540px){
 .be-role-owner .be-main .be-billing-hub .be-bc-nav{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px!important;padding:5px!important;margin-bottom:15px!important;
 }
 .be-role-owner .be-main .be-billing-hub .be-bc-nav>.be-bc-tab {
  font-size:.78rem!important;min-height:43px!important;padding:9px 7px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .be-role-owner .be-main .be-billing-hub .be-bc-nav>.be-bc-tab{transition:none!important}
}
