/* COMASA V3.12.13.37 - isolated Numera + native CRM combined workspace. */
#brchat.bc37-combined{--bc37-chat-height:clamp(280px,38dvh,560px);--bc37-crm-height:clamp(340px,41dvh,650px);gap:9px!important;}
#brchat.bc37-combined.bc37-size-chat{--bc37-chat-height:clamp(380px,59dvh,780px);--bc37-crm-height:clamp(290px,30dvh,490px);}
#brchat.bc37-combined.bc37-size-crm{--bc37-chat-height:clamp(260px,29dvh,400px);--bc37-crm-height:clamp(430px,56dvh,850px);}
#brchat.bc37-combined .bc34-workspace{height:var(--bc37-chat-height)!important;min-height:0!important;flex:0 0 auto!important;}
#brchat .bc37-crm-shell{display:none;min-width:0;border-radius:15px;border:1px solid #cbdce6;background:#fff;box-shadow:0 7px 25px rgba(18,45,71,.06);overflow:hidden;}
#brchat.bc37-combined .bc37-crm-shell{display:flex;flex-direction:column;height:var(--bc37-crm-height);min-height:270px;flex:0 0 auto;}
#brchat .bc37-crm-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding:10px 14px;background:#f7fbfd;border-bottom:1px solid #e1e9f1;flex:0 0 auto;}
#brchat .bc37-heading{display:flex;align-items:center;gap:10px;min-width:0;}
#brchat .bc37-crm-mark{display:grid;place-items:center;font-size:20px;color:#0d7167;background:#e8f5f1;border:1px solid #c1e3d8;border-radius:10px;width:34px;height:34px;flex:0 0 auto;}
#brchat .bc37-heading h3{margin:0!important;font-size:15px;line-height:1.25;font-weight:850;color:#173954;}
#brchat .bc37-heading p{margin:2px 0 0!important;font-size:11px;color:#677e93;}
#brchat .bc37-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
#brchat .bc37-controls label{font-size:11px;color:#4b657a;font-weight:700;}
#brchat #bc37Pipeline{width:min(230px,40vw);max-width:100%;font-size:12px;padding:6px 8px;min-height:33px;border-radius:8px;border:1px solid #b5cbd9;background:white;color:#173c53;}
#brchat .bc37-control{background:#fff;color:#185771;border:1px solid #c6d7e1;border-radius:8px;min-height:33px;padding:7px 10px;font-size:11px;font-weight:750;cursor:pointer;white-space:nowrap;}
#brchat .bc37-control:hover{background:#e9f4f8;}
#brchat .bc37-control:focus-visible,#brchat #bc37Pipeline:focus-visible{outline:2px solid #6ec6ca;outline-offset:2px;}
#brchat .bc37-state{color:#456778;background:#f0f7fa;padding:4px 14px;min-height:24px;font-size:11px;flex:0 0 auto;line-height:1.45;}
#brchat .bc37-state.bc37-error{color:#9c3431;background:#fef2f2;}
#brchat .bc37-crm-scroll{overflow:auto;min-height:0;min-width:0;flex:1 1 auto;overscroll-behavior:contain;padding:12px 14px;scrollbar-width:thin;}
#brchat #crm.bc37-embedded-crm{display:block!important;margin:0!important;min-width:0!important;max-width:100%!important;}
#brchat #crm.bc37-embedded-crm .crm38Title{margin-top:0!important;}
#brchat #crm.bc37-embedded-crm .crm38Title h2{font-size:16px;}
#brchat #crm.bc37-embedded-crm .crm38Toolbar{margin-top:7px;}
#brchat #crm.bc37-embedded-crm .crm38Kanban{max-width:100%;min-width:0;scrollbar-width:thin;}
#brchat .bc37-mini-foot{padding:5px 14px;border-top:1px solid #edf1f5;background:#fbfdfe;color:#71889b;font-size:10px;line-height:1.35;flex:0 0 auto;}
#brchat .bc37-crm-shell.bc37-busy .bc37-crm-scroll{opacity:.6;pointer-events:none;}
#brchat .bc37-crm-shell.bc37-busy #bc37Pipeline{opacity:.6;pointer-events:none;}
@media(max-width:900px){
 #brchat.bc37-combined{--bc37-chat-height:clamp(250px,37dvh,540px);--bc37-crm-height:clamp(320px,42dvh,650px);}
 #brchat .bc37-crm-top{padding:9px 11px;}
 #brchat .bc37-heading p{display:none;}
 #brchat .bc37-crm-scroll{padding:9px 10px;}
}
@media(max-width:600px){
 #brchat.bc37-combined{--bc37-chat-height:clamp(250px,38dvh,500px);--bc37-crm-height:clamp(340px,44dvh,650px);}
 #brchat .bc37-crm-top{align-items:flex-start;flex-direction:column;gap:8px;}
 #brchat .bc37-controls{width:100%;}
 #brchat #bc37Pipeline{width:100%;flex:1;min-width:125px;}
 #brchat .bc37-control{padding:7px 8px;}
 #brchat .bc37-mini-foot{display:none;}
}
@media print{#brchat .bc37-crm-shell{break-inside:avoid}}
