.bh-app{margin:0;background:#f3f7f6;color:#00322e;font:16px/1.55 system-ui,sans-serif}.bh-top{display:flex;justify-content:space-between;align-items:center;padding:20px max(20px,calc((100vw - 1200px)/2));background:#00322e;color:white}.bh-top a{color:white;text-decoration:none;font-weight:700}.bh-top small{display:block;font-weight:400}.bh-main{max-width:1200px;padding:28px 20px;margin:auto}.bh-card{background:white;border:1px solid #d5e2de;border-radius:14px;padding:24px;margin:20px 0;box-shadow:0 2px 8px #00322e05}.bh-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.bh-grid .bh-card{margin:0}.bh-number{display:block;font-size:30px}.bh-chip{display:inline-block;border:1px solid #80aaa5;border-radius:30px;padding:4px 12px;font-size:14px;background:#f0f8f5}.bh-notice{padding:18px;border-left:5px solid #027472;background:#e3f3ee}.bh-danger{padding:22px;background:#fff1e2;border:2px solid #a44614;color:#722c0a}.bh-login{max-width:420px;margin:40px auto}.bh-app label,.bh-operations label{display:block;margin:12px 0;font-weight:600}.bh-app input:not([type=checkbox]),.bh-app select,.bh-app textarea,.bh-operations input:not([type=checkbox]),.bh-operations select,.bh-operations textarea{display:block;box-sizing:border-box;width:100%;max-width:650px;padding:12px;border:1px solid #91a9a1;border-radius:7px;background:white;color:#00322e;font:inherit;min-height:46px}.bh-app button,.bh-button,.bh-operations button{display:inline-block;min-height:46px;padding:12px 20px;border:0;border-radius:8px;background:#027472;color:white;font:600 16px system-ui;cursor:pointer;text-decoration:none}.bh-app a,.bh-operations a{color:#027472}.bh-app :focus-visible,.bh-operations :focus-visible{outline:3px solid #e4ae44;outline-offset:3px}.bh-tabs{display:flex;gap:12px;flex-wrap:wrap}.bh-tabs a{padding:10px 14px;background:white;border-radius:8px}.bh-table{width:100%;border-collapse:collapse}.bh-table th,.bh-table td{padding:12px;text-align:left;border-bottom:1px solid #dce6e2}.bh-table th{font-size:13px;background:#f2f7f5}.bh-table-wrap{overflow:auto}.bh-empty{padding:24px;color:#506d65}.bh-actions{display:flex;gap:10px;flex-wrap:wrap}.bh-operations{max-width:1280px}.bh-operations details{border:1px solid #d5e2de;padding:14px;border-radius:8px;margin:16px 0}.bh-operations summary{cursor:pointer;font-weight:600;min-height:30px}.bh-operations h1{font-size:32px}.bh-operations .bh-check,.bh-check{display:flex;align-items:center;gap:12px}.bh-operations input[type=checkbox],.bh-app input[type=checkbox]{width:22px;height:22px}.bh-operations button[disabled]{opacity:.5;cursor:wait}@media(max-width:650px){.bh-main{padding:18px 12px}.bh-card{padding:18px}.bh-table thead{display:none}.bh-table tr{display:block;padding:12px 0;border-bottom:2px solid #b9ccc4}.bh-table td{display:grid;grid-template-columns:minmax(90px,35%) 1fr;gap:10px;border:0;padding:6px;overflow-wrap:anywhere}.bh-table td:before{content:attr(data-label);font-weight:600}.bh-actions>*{width:100%;box-sizing:border-box}.bh-operations h1{font-size:26px}}

/* v0.10.4 — feedback do cadastro manual */
.bh-field-error{display:block;margin-top:5px;color:#9b2c2c;font-weight:600;line-height:1.35}.bh-form-draft-note{padding:10px 12px;border-left:4px solid #0b8178;background:#edf8f6;color:#174d48}


/* v0.10.5 — identidade da Área do Associado e refinamento das ações */
.bh-member-app{--bh-deep:#00322e;--bh-teal:#027472;--bh-gold:#e4ae44;--bh-ink:#17302d;--bh-muted:#657773;--bh-line:#d8e4e2;--bh-soft:#eef6f4;background:linear-gradient(180deg,#f3f7f6 0,#f7faf9 100%);color:var(--bh-ink)}
.bh-member-app .bh-top{padding:0;background:var(--bh-deep);box-shadow:0 8px 30px rgba(0,50,46,.12)}
.bh-top-inner{width:min(1200px,calc(100% - 40px));min-height:92px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.bh-member-brand{display:flex;align-items:center;gap:15px;color:#fff!important;text-decoration:none}
.bh-member-brand img{width:92px;height:auto;display:block}
.bh-member-brand span{display:grid;gap:1px}.bh-member-brand strong{font-size:16px;letter-spacing:.01em}.bh-member-brand small{color:rgba(255,255,255,.72);font-size:12px}
.bh-logout{display:inline-flex;align-items:center;min-height:40px;padding:0 15px;border:1px solid rgba(255,255,255,.24);border-radius:9px;color:#fff!important;text-decoration:none}.bh-logout:hover{background:rgba(255,255,255,.09)}
.bh-member-app .bh-main{max-width:1200px;padding-top:42px;padding-bottom:64px}
.bh-member-hero{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px;padding:32px;border-radius:18px;background:linear-gradient(135deg,#00322e 0%,#064d47 72%,#0a6b62 100%);color:#fff;box-shadow:0 16px 42px rgba(0,50,46,.12)}
.bh-member-hero:after{content:"";position:absolute;right:-45px;top:-70px;width:230px;height:230px;border:1px solid rgba(228,174,68,.25);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.025),0 0 0 72px rgba(255,255,255,.018)}
.bh-member-hero>div{position:relative;z-index:1}.bh-eyebrow,.bh-card-kicker{display:block;margin-bottom:7px;color:var(--bh-gold);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.bh-member-hero h1{margin:0 0 12px;color:#fff;font-size:clamp(30px,4vw,46px);line-height:1.05;letter-spacing:-.025em}
.bh-member-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;color:rgba(255,255,255,.82)}
.bh-member-hero .bh-chip{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fff}
.bh-member-hero-mark{min-width:170px;padding:16px 18px;border:1px solid rgba(255,255,255,.15);border-radius:13px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}
.bh-member-hero-mark span,.bh-member-hero-mark strong{display:block}.bh-member-hero-mark span{color:rgba(255,255,255,.65);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.bh-member-hero-mark strong{margin-top:4px;font-size:20px}
.bh-member-tabs{position:sticky;top:0;z-index:5;gap:7px;margin:0 0 20px;padding:8px;border:1px solid var(--bh-line);border-radius:13px;background:rgba(247,250,249,.94);box-shadow:0 8px 22px rgba(0,50,46,.06);backdrop-filter:blur(9px)}
.bh-member-tabs a{padding:10px 13px;border:1px solid transparent;background:transparent;color:var(--bh-deep);font-weight:700;text-decoration:none}.bh-member-tabs a:hover{border-color:#bfd3cf;background:#fff;color:var(--bh-teal)}
.bh-member-app .bh-card{border-color:var(--bh-line);box-shadow:0 8px 28px rgba(0,50,46,.045)}
.bh-card--feature{position:relative;overflow:hidden;padding:28px}.bh-card--feature:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--bh-gold)}
.bh-card--feature h2{margin-top:0;color:var(--bh-deep);font-size:29px;line-height:1.15}
.bh-member-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.bh-member-primary-grid>.bh-card{margin:0}
.bh-member-app .bh-number{color:var(--bh-deep);font-size:31px;letter-spacing:-.02em}
.bh-member-app .bh-chip{border-color:#93bbb6;background:#f1f8f6;color:#174d48;font-weight:650}
.bh-subscription-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid var(--bh-line)}
.bh-subscription-summary>div{min-width:0;padding:12px;border-radius:10px;background:var(--bh-soft)}
.bh-summary-label{display:block;margin-bottom:5px;color:var(--bh-muted);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.055em}.bh-subscription-summary strong{color:var(--bh-deep);font-size:16px}
.bh-inline-alert{padding:12px 14px;border-radius:9px;background:#fff4e7;color:#7f3f13}
.bh-member-app #historico h2,.bh-member-app #dados h2,.bh-member-app #autorizacao h2,.bh-member-app #suporte h2{color:var(--bh-deep)}
.bh-member-app .bh-table th{background:#eef5f3;color:#31524d;text-transform:uppercase;letter-spacing:.045em;font-size:11px}
.bh-member-app .bh-button,.bh-member-app button{box-shadow:0 5px 14px rgba(2,116,114,.15)}
@media(max-width:820px){.bh-member-primary-grid{grid-template-columns:1fr}.bh-subscription-summary{grid-template-columns:1fr}.bh-member-hero{align-items:flex-start;flex-direction:column}.bh-member-hero-mark{min-width:0;width:100%}.bh-member-tabs{position:static;overflow-x:auto;flex-wrap:nowrap}.bh-member-tabs a{white-space:nowrap}.bh-top-inner{width:min(100% - 28px,1200px);min-height:78px}.bh-member-brand img{width:76px}.bh-member-app .bh-main{padding-top:22px}}
@media(max-width:520px){.bh-member-hero{padding:24px 20px}.bh-member-hero h1{font-size:31px}.bh-card--feature{padding:22px 18px}.bh-member-brand span{display:none}}


/* v0.10.5 — tabela operacional de pagamentos */
.bh-payment-table{min-width:900px}
.bh-payment-table td{vertical-align:middle}
.bh-table-link{color:#075f5a!important;text-decoration:none}.bh-table-link:hover{text-decoration:underline}.bh-table-link--strong{font-weight:700}
.bh-muted{color:#6b7c79;font-size:13px}
.bh-status{display:inline-flex;align-items:center;min-height:28px;padding:3px 10px;border:1px solid #bdd0cc;border-radius:999px;background:#f3f7f6;color:#365a54;font-size:13px;font-weight:700;white-space:nowrap}
.bh-status--confirmed,.bh-status--approved{border-color:#a8d7b4;background:#edf9f0;color:#246238}.bh-status--failed,.bh-status--payment_failed{border-color:#efb5b0;background:#fff0ef;color:#8d2d27}.bh-status--pending,.bh-status--processing,.bh-status--created{border-color:#e6cf9b;background:#fff8e7;color:#735716}.bh-status--refunded,.bh-status--cancelled,.bh-status--chargeback{border-color:#c9d0ce;background:#f2f4f3;color:#52605e}
.bh-row-actions{display:flex;gap:7px;flex-wrap:wrap}.bh-button--small{min-height:36px!important;padding:8px 11px!important;border-radius:7px!important;font-size:13px!important;line-height:1.1}.bh-button--secondary{border:1px solid #b9cdc9!important;background:#fff!important;color:#075f5a!important}.bh-button--secondary:hover{background:#edf6f4!important}
@media(max-width:650px){.bh-payment-table{min-width:0}.bh-payment-table tr{padding:14px;border:1px solid #d5e2de;border-radius:10px;margin-bottom:12px;background:#fff}.bh-payment-table td{grid-template-columns:110px 1fr}.bh-row-actions{justify-content:flex-start}}

/* v0.10.7 — row-level actions for operational lists */
.bh-list-table th:last-child,.bh-list-table td:last-child{width:1%;white-space:nowrap}
.bh-list-table tbody tr{transition:background-color .15s ease}
.bh-list-table tbody tr:hover{background:#fbfdfc}
.bh-list-table .bh-row-actions{min-width:max-content}
.bh-status--active,.bh-status--authorized,.bh-status--redeemed,.bh-status--available,.bh-status--resolved,.bh-status--completed{border-color:#a8d7b4;background:#edf9f0;color:#246238}
.bh-status--pending_payment,.bh-status--unknown,.bh-status--scheduled,.bh-status--approving{border-color:#e6cf9b;background:#fff8e7;color:#735716}
.bh-status--suspended,.bh-status--locked,.bh-status--expired,.bh-status--reversed,.bh-status--none,.bh-status--paused{border-color:#c9d0ce;background:#f2f4f3;color:#52605e}
@media(max-width:650px){.bh-list-table{min-width:0}.bh-list-table tr{padding:14px;border:1px solid #d5e2de;border-radius:10px;margin-bottom:12px;background:#fff}.bh-list-table td{grid-template-columns:110px 1fr}.bh-list-table th:last-child,.bh-list-table td:last-child{width:auto;white-space:normal}.bh-list-table .bh-row-actions{min-width:0}.bh-list-table .bh-row-actions .bh-button{width:auto!important}}

/* v0.10.13 — gestão de carteira, pré-cadastros e saúde financeira */
.bh-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:8px 0 22px}.bh-dashboard-head h2{margin:2px 0 8px;font-size:28px;color:#00322e}.bh-dashboard-head p{margin:0;max-width:760px;color:#536e68}.bh-dashboard-meta{min-width:150px;padding:16px 18px;border:1px solid #d5e2de;border-radius:12px;background:#fff;text-align:right}.bh-dashboard-meta strong{display:block;font-size:30px;line-height:1;color:#00322e}.bh-dashboard-meta span{font-size:12px;color:#6b7c79;text-transform:uppercase;letter-spacing:.05em}
.bh-management-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.bh-management-metric{position:relative;display:grid;gap:4px;min-height:116px;padding:18px;border:1px solid #d5e2de;border-radius:13px;background:#fff;color:#183d38!important;text-decoration:none!important;box-shadow:0 5px 18px rgba(0,50,46,.035);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.bh-management-metric:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(0,50,46,.075);border-color:#9dbdb7}.bh-management-metric span{font-size:13px;font-weight:750}.bh-management-metric strong{font-size:32px;line-height:1.05;color:#00322e}.bh-management-metric small{margin-top:auto;color:#6b7c79}.bh-management-metric:before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:3px;border-radius:0 3px 3px 0;background:#8ca9a3}.bh-management-metric--good:before{background:#3b9b61}.bh-management-metric--warning:before{background:#d5a53f}.bh-management-metric--danger:before{background:#c45349}.bh-management-metric--muted:before{background:#9ba8a5}
.bh-dashboard-secondary{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.bh-dashboard-secondary .bh-card{margin:0}.bh-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.bh-card-heading h2,.bh-policy-card h2{margin:0 0 6px;color:#00322e}.bh-card-heading p,.bh-policy-card p{margin-top:0;color:#5c726d}.bh-attention-card{margin-top:18px}.bh-attention-table td>small,.bh-member-list-table td>small{display:block;margin-top:5px;color:#71827e;font-size:12px;white-space:normal}.bh-policy-card{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.bh-policy-card>div{max-width:760px}.bh-policy-card .bh-operation-form{display:flex;align-items:flex-end;gap:10px;min-width:330px}.bh-policy-card .bh-operation-form label{margin:0;flex:1}.bh-policy-card .bh-operation-form select{min-width:130px}.bh-policy-card .bh-operation-form button{white-space:nowrap}
.bh-member-list-table{min-width:1500px}.bh-member-list-table td{vertical-align:middle}.bh-member-list-table th:nth-child(2),.bh-member-list-table td:nth-child(2){min-width:190px}.bh-member-list-table th:nth-child(5),.bh-member-list-table td:nth-child(5),.bh-member-list-table th:nth-child(7),.bh-member-list-table td:nth-child(7){min-width:155px}.bh-status--delinquent{border-color:#efb5b0;background:#fff0ef;color:#8d2d27}
@media(max-width:1050px){.bh-management-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bh-dashboard-secondary{grid-template-columns:1fr 1fr}.bh-dashboard-secondary .bh-card:last-child{grid-column:1/-1}.bh-policy-card{align-items:stretch;flex-direction:column}.bh-policy-card .bh-operation-form{min-width:0;max-width:520px}}
@media(max-width:650px){.bh-dashboard-head{align-items:stretch;flex-direction:column}.bh-dashboard-meta{text-align:left}.bh-management-metrics{grid-template-columns:1fr 1fr;gap:10px}.bh-management-metric{min-height:105px;padding:15px}.bh-management-metric strong{font-size:28px}.bh-dashboard-secondary{grid-template-columns:1fr}.bh-dashboard-secondary .bh-card:last-child{grid-column:auto}.bh-card-heading{flex-direction:column}.bh-policy-card .bh-operation-form{align-items:stretch;flex-direction:column}.bh-member-list-table{min-width:0}.bh-member-list-table tr{padding:16px}.bh-member-list-table td{grid-template-columns:118px 1fr}.bh-attention-table td{grid-template-columns:110px 1fr}}
@media(max-width:420px){.bh-management-metrics{grid-template-columns:1fr}}
.bh-member-management-card .bh-card-heading{align-items:center}.bh-member-finance-highlight{min-width:185px;padding:14px 16px;border:1px solid #d5e2de;border-radius:11px;background:#f7faf9}.bh-member-finance-highlight>span,.bh-member-finance-highlight>small{display:block}.bh-member-finance-highlight>span{margin-bottom:7px;color:#6b7c79;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.bh-member-finance-highlight>small{margin-top:6px;color:#8d2d27;font-size:12px}.bh-member-management-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}.bh-member-management-grid p{margin:0;padding:12px;border-radius:9px;background:#f3f7f6}.bh-member-management-grid span,.bh-member-management-grid strong{display:block}.bh-member-management-grid span{margin-bottom:4px;color:#6b7c79;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.045em}.bh-member-management-grid strong{color:#173d38;overflow-wrap:anywhere}@media(max-width:900px){.bh-member-management-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.bh-member-management-card .bh-card-heading{align-items:flex-start}.bh-member-finance-highlight{width:100%;box-sizing:border-box}.bh-member-management-grid{grid-template-columns:1fr}}

/* Keep withdrawal notes legible, including line breaks, on desktop/mobile. */
.bh-table td[data-label="Anotações"] { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 160px; max-width: 360px; }
@media (max-width: 700px) { .bh-table td[data-label="Anotações"] { min-width: 0; max-width: none; } }

/* Technical email log: avoid duplicate member buttons and unreadable link colors. */
.bh-technical a.bh-button { color: #fff; }
.bh-mail-explanation { max-width: 900px; line-height: 1.6; color: #304f48; }
.bh-mail-log .bh-table td { vertical-align: top; overflow-wrap: anywhere; }
.bh-mail-log td[data-label="Destinatário"], .bh-mail-log td[data-label="Associado"] { white-space: pre-line; min-width: 170px; }
.bh-mail-log td[data-label="Mensagem"] { min-width: 145px; }
@media (max-width: 650px) {
 .bh-mail-log .bh-table td { min-width: 0; }
 .bh-mail-log .bh-table td[data-label="Destinatário"] { grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); }
}

.bh-recovery { scroll-margin-top: 24px; }
.bh-recovery-summary { display:flex;flex-wrap:wrap;gap:12px 24px;background:#f0f7f5;padding:12px;border-radius:8px; }
.bh-recovery-help { font-size:14px;color:#47655e; }
.bh-card-change { margin:20px 0;border:1px solid #b5ceca;border-radius:8px;padding:16px; }
.bh-card-change summary { cursor:pointer;font-weight:700;min-height:44px; }
.bh-card-fields { display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px; }
.bh-secure-field { height:48px;border:1px solid #91a9a1;border-radius:7px;background:#fff;padding:8px;box-sizing:border-box; }
.bh-secure-field iframe { width:100%;height:100%;border:0; }
.bh-card-form button[disabled] { opacity:.6;cursor:wait; }
#bh-recovery-feedback:not(:empty) { margin:16px 0;padding:16px;background:#edf6f3;border-left:4px solid #027472; }
@media(max-width:650px) { .bh-card-fields { grid-template-columns:1fr; } .bh-recovery button { min-height:48px;width:100%; } }
