/* COMASA v3.12.13.36: iPad/WebKit iframe height uses flex allocation, not percentage heights. */
/* COMASA 3.12.13.34 - Numera Chat tenant access workspace.
   Scoped to #brchat only: no changes to global nav/header/CRM. */
#brchat.section.active{display:flex;flex-direction:column;gap:14px;min-width:0;max-width:100%;}
#brchat .bc34-head{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;}
#brchat .bc34-title{display:flex;gap:11px;align-items:center;min-width:0;}
#brchat .bc34-logo{width:43px;height:43px;display:grid;place-items:center;flex:none;border-radius:13px;background:linear-gradient(145deg,#e3f7ec,#c9eadb);color:#117e58;border:1px solid #b2dcc9;}
#brchat .bc34-logo svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
#brchat .bc34-title h2{font-size:21px;line-height:1.2;margin:0 0 4px!important;color:#0d2946;font-weight:800;}
#brchat .bc34-subtitle{font-size:12px;color:#5f7287;line-height:1.4;}
#brchat .bc34-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#brchat .bc34-button{appearance:none;display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid #cbd8e5;padding:9px 13px;border-radius:10px;text-decoration:none;font-size:12px;font-weight:760;line-height:1.25;color:#204568;background:white;cursor:pointer;min-height:38px;white-space:nowrap;box-shadow:0 1px 2px rgba(15,39,65,.05);}
#brchat .bc34-button:hover{background:#f0f6fc;border-color:#9eb8d0;}
#brchat .bc34-button:focus-visible{outline:3px solid #7cc9de;outline-offset:2px;}
#brchat .bc34-button-main{background:#0d7569;color:#fff;border-color:#0d7569;}
#brchat .bc34-button-main:hover{background:#07594f;border-color:#07594f;}
#brchat .bc34-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
#brchat .bc34-status{display:flex;gap:8px;align-items:center;justify-content:space-between;min-width:0;flex-wrap:wrap;border:1px solid #e1eaf1;background:#f8fbfd;border-radius:12px;padding:10px 13px;}
#brchat .bc34-status-text{font-size:12px;color:#425a70;line-height:1.5;}
#brchat .bc34-status-text strong{color:#164769;}
#brchat .bc34-pill{display:inline-flex;gap:5px;align-items:center;font-size:10px;font-weight:800;letter-spacing:.025em;padding:5px 9px;border-radius:99px;color:#0e684b;border:1px solid #c3e7d8;background:#eaf8f1;white-space:nowrap;}
#brchat .bc34-pill:before{content:'';height:6px;width:6px;border-radius:100%;background:#1b9b68;}
#brchat .bc34-workspace{position:relative;display:flex;flex-direction:column;flex:0 0 auto;min-width:0;height:clamp(520px,calc(100dvh - 190px),1100px);min-height:520px;overflow:hidden;border:1px solid #cadae6;border-radius:15px;background:#fff;box-shadow:0 9px 28px rgba(10,38,68,.075);}
#brchat .bc34-toolbar{flex:0 0 43px;height:43px;min-height:43px;box-sizing:border-box;padding:0 14px;display:flex;align-items:center;gap:8px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:11px;font-weight:730;color:#334d64;}
#brchat .bc34-toolbar svg{width:16px;height:16px;fill:none;stroke:#228c6c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
#brchat .bc34-toolbar code{margin-left:auto;background:transparent;font-size:11px;color:#6e8398;font-weight:500;}
#brchat .bc34-frame{display:block;flex:1 1 0px;min-height:0;height:0;width:100%;min-width:0;border:0;background:#fff;}
#brchat .bc34-footnote{display:flex;gap:7px;align-items:flex-start;font-size:11px;line-height:1.55;color:#64788a;}
#brchat .bc34-footnote svg{width:15px;height:15px;flex:none;margin-top:1px;fill:none;stroke:#778da2;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
#brchat .bc34-footnote a{color:#116e99;font-weight:650;}
#brchat .bc34-fallback{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 36px));border-radius:14px;border:1px solid #dae5ed;background:rgba(255,255,255,.98);padding:23px 21px;box-shadow:0 14px 46px rgba(15,43,74,.16);text-align:center;display:none;z-index:2;}
#brchat .bc34-fallback.is-visible{display:block;}
#brchat .bc34-fallback b{color:#153654;display:block;font-size:16px;margin-bottom:7px;}
#brchat .bc34-fallback p{margin:0 0 14px;font-size:12px;line-height:1.5;color:#5c6e82;}
#brchat .bc34-fallback .bc34-button{width:auto;margin:auto;}
#nav button[data-tab="brchat"] .ui34WhatsIcon{width:19px;height:19px;stroke:#70d9b8;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;}
#nav button[data-tab="brchat"]:focus-visible{outline:2px solid #6ed0e2;outline-offset:2px;}
@media(max-width:900px){
 #brchat .bc34-workspace{height:calc(100dvh - 175px);min-height:500px;}
 #brchat .bc34-head{gap:9px;}
 #brchat .bc34-title h2{font-size:19px;}
}
@media(max-width:600px){
 #brchat.section.active{gap:10px;}
 #brchat .bc34-head-actions{width:100%;}
 #brchat .bc34-head-actions .bc34-button{flex:1;}
 #brchat .bc34-status{padding:9px 11px;}
 #brchat .bc34-status-text{font-size:11px;}
 #brchat .bc34-workspace{height:calc(100dvh - 230px);min-height:440px;border-radius:12px;}
 #brchat .bc34-toolbar code{display:none;}
}
@media print{#brchat .bc34-workspace{display:none!important}}
#brchat .bc34-setup{border:1px solid #cfe5e2;background:#f5fcfa;padding:10px 13px;border-radius:11px;font-size:12px;color:#1e4f56;}
#brchat .bc34-setup[hidden],#brchat .bc34-empty[hidden]{display:none!important;}
#brchat .bc34-setup summary{font-size:12px;font-weight:790;cursor:pointer;}
#brchat .bc34-setup summary span{font-size:10px;font-weight:540;color:#577e80;}
#brchat .bc34-setup-form{display:flex;align-items:end;gap:10px;margin:12px 0 8px;flex-wrap:wrap;}
#brchat .bc34-setup-input{flex:1;min-width:220px;}
#brchat .bc34-setup-input label{display:block;font-size:11px;font-weight:750;margin-bottom:5px;color:#315e63;}
#brchat .bc34-setup-input input{width:100%;height:38px;border:1px solid #b5cdd2;border-radius:9px;background:#fff;padding:9px 11px;font-size:13px;color:#173f4a;}
#brchat .bc34-setup-input input:focus{outline:2px solid #89cfc7;outline-offset:1px;}
#brchat .bc34-setup-msg{font-size:11px;line-height:1.5;color:#567477;}
#brchat .bc34-disabled{cursor:not-allowed!important;opacity:.45;pointer-events:none;}
#brchat .bc34-button:disabled{cursor:not-allowed;opacity:.45;}
#brchat .bc34-empty{position:absolute;inset:43px 0 0;z-index:1;background:linear-gradient(160deg,#f8fafc,#eef5f8);display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;text-align:center;padding:25px;}
#brchat .bc34-empty svg{width:41px;height:41px;fill:none;stroke:#7494ab;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
#brchat .bc34-empty strong{font-size:16px;color:#234761;}
#brchat .bc34-empty p{max-width:480px;font-size:12px;color:#61788b;line-height:1.6;margin:0;}
