/* ResponYa CRM. Shared presentation contract for all authenticated modules. */
:root { --v2-green:#087f63; --v2-ink:#172333; --v2-muted:#667382; --v2-line:#dfe5ea; --v2-bg:#f5f7fa; --v2-side:218px; }
body#crm-app.crm-v2 { margin:0; background:var(--v2-bg)!important; color:var(--v2-ink)!important; font-family:Inter,system-ui,sans-serif; font-size:14px; padding:0 0 0 var(--v2-side)!important; min-height:100dvh; }
body#crm-app.crm-v2 * { box-sizing:border-box; }
body#crm-app.crm-v2 :is(h1,h2,h3,h4) { color:var(--v2-ink); letter-spacing:-.025em; }
body#crm-app.crm-v2 h1 { font-size:30px!important; font-weight:700!important; line-height:1.2; }
body#crm-app.crm-v2 :is(button,a,input,select,textarea) { -webkit-tap-highlight-color:transparent; }
body#crm-app.crm-v2 :is(button,a):focus-visible { outline:3px solid #64b99e; outline-offset:3px; }
body#crm-app.crm-v2 :is(button,input,select,textarea) { font-family:inherit; }
body#crm-app.crm-v2 :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea) { font-size:14px!important; border-radius:8px!important; border-color:var(--v2-line)!important; background-color:white; min-width:0; }
body#crm-app.crm-v2 input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),body#crm-app.crm-v2 select { min-height:42px; }
body#crm-app.crm-v2 :is(button,a) { box-shadow:none!important; }
body#crm-app.crm-v2 [class*="shadow"] { box-shadow:none!important; }
body#crm-app.crm-v2 :is(.hover-lift,.hover-premium):hover { transform:none!important; }
body#crm-app.crm-v2 [class*="rounded-"]:not(.rounded-full):not(.status-light):not(.ry-brand-mark) { border-radius:10px; }
body#crm-app.crm-v2 :is(.bg-blue-600,.bg-indigo-600,.bg-brand-500,.bg-brand-600,.bg-brand-700,.bg-emerald-500,.bg-emerald-600) { background:var(--v2-green)!important; color:white; }
body#crm-app.crm-v2 :is(.text-blue-600,.text-brand-600,.text-brand-500) { color:var(--v2-green); }
body#crm-app.crm-v2 :is(.font-black,.font-extrabold) { font-weight:650!important; }
body#crm-app.crm-v2 [class*="tracking-widest"] { letter-spacing:.025em!important; }
body#crm-app.crm-v2 :is(main,.billing-main,#business-settings-page,#profile-page,.vp-main):not(.chat-workspace) { max-width:1500px!important; width:100%!important; margin:0 auto!important; padding:32px!important; }
body#crm-app.crm-v2 .v2-legacy-nav { display:none!important; }
.v2-sidebar { position:fixed; inset:0 auto 0 0; z-index:60; display:flex; flex-direction:column; gap:24px; width:var(--v2-side); padding:30px 16px 20px; border-right:1px solid var(--v2-line); background:#fff; }
.v2-sidebar .ry-brand-lockup { padding:0 8px; gap:8px; }
.v2-sidebar .ry-brand-name { font-size:24px; letter-spacing:-1.2px; }
.v2-sidebar .ry-brand-mark { width:35px; height:35px; border-radius:8px; background:var(--v2-green); box-shadow:none; }
.v2-menu { display:grid; gap:7px; }
.v2-menu a,.v2-more a { display:flex; align-items:center; gap:12px; padding:12px; min-height:46px; color:var(--v2-ink); border-radius:8px; font-weight:500; text-decoration:none; }
.v2-menu a:hover,.v2-menu a[aria-current=page] { background:#e1f3eb; color:var(--v2-green); }
.v2-menu svg { width:20px; height:20px; flex:none; stroke-width:1.7; }
.v2-sidebar-footer { margin-top:auto; padding-top:16px; border-top:1px solid var(--v2-line); }
.v2-sidebar-footer a { color:var(--v2-muted); font-size:13px; }
.v2-mobile-header,.v2-mobile-nav { display:none; }
.v2-more { position:fixed; z-index:90; bottom:75px; right:12px; left:12px; padding:12px; border:1px solid var(--v2-line); border-radius:12px; background:white; box-shadow:0 6px 30px #17233320; }
.v2-more[hidden] { display:none; }
.v2-title-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.v2-title-row p { margin:8px 0 0; color:var(--v2-muted); }
.v2-title-row h1 { margin:0; }
.v2-card { background:white; border:1px solid var(--v2-line); border-radius:10px; padding:22px; min-width:0; }
.v2-card h2 { margin:0 0 18px; font-size:19px; font-weight:650; }
.v2-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 16px; border:1px solid var(--v2-green); border-radius:8px; color:white; background:var(--v2-green); font-weight:600; text-decoration:none; cursor:pointer; }
.v2-button.secondary { background:white; color:var(--v2-green); }
.v2-button svg { width:18px; height:18px; }
.v2-muted,.v2-empty { color:var(--v2-muted); }
.v2-empty { padding:26px 0; text-align:center; line-height:1.7; }
.v2-chip { display:inline-flex; gap:5px; align-items:center; padding:4px 9px; border-radius:6px; background:#e5f5ee; color:#076b51; font-size:12px; font-weight:500; white-space:nowrap; }
.v2-chip.amber { color:#945800; background:#fff2d6; }.v2-chip.gray { color:#596674; background:#f0f3f5; }
.v2-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.v2-stat { padding:20px; background:#fff; border:1px solid var(--v2-line); border-radius:10px; min-width:0; }
.v2-stat small { display:block; color:var(--v2-muted); font-size:13px; }
.v2-stat strong { display:block; margin-top:10px; font-size:25px; letter-spacing:-.04em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.v2-queue { margin-bottom:22px; }
.v2-queue-row { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:14px; padding:18px 0; border-top:1px solid var(--v2-line); align-items:center; text-decoration:none; color:inherit; }
.v2-queue-row > svg { width:22px; color:var(--v2-green); }
.v2-queue-row strong { display:block; margin-bottom:5px; font-weight:600; }
.v2-queue-row p { margin:0; color:var(--v2-muted); font-size:13px; }
.v2-queue-row .v2-button { min-width:110px; }
/* Home retains the existing live data nodes while moving the work queue first. */
body#crm-app.crm-v2 #dashboard-topbar { display:flex; margin:0 0 24px; padding:0; border:0; background:transparent; min-height:0; }
body#crm-app.crm-v2 #dashboard-topbar h1 { font-size:30px; }
body#crm-app.crm-v2 #dashboard-topbar .dashboard-welcome p { margin-top:8px; color:var(--v2-muted); }
body#crm-app.crm-v2 #dashboard-search-box,body#crm-app.crm-v2 #dashboard-date-range { display:none; }
body#crm-app.crm-v2 #dashboard-profile { border:0; background:transparent; }
body#crm-app.crm-v2 #dashboard-hero,body#crm-app.crm-v2 #dashboard-live-card { display:none!important; }
body#crm-app.crm-v2 #dashboard-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0 0 24px; }
body#crm-app.crm-v2 .dashboard-metric { min-height:116px; padding:18px; border:1px solid var(--v2-line); border-radius:10px; background:white!important; }
body#crm-app.crm-v2 .dashboard-metric::before,body#crm-app.crm-v2 .dashboard-metric::after { display:none; }
body#crm-app.crm-v2 .dashboard-metric-value { font-size:27px; white-space:nowrap; }
body#crm-app.crm-v2 .dashboard-metric-label { font-size:12px; font-weight:500; }
body#crm-app.crm-v2 .dashboard-metric:nth-child(5),body#crm-app.crm-v2 .dashboard-metric:nth-child(6) { display:none; }
body#crm-app.crm-v2 #dashboard-main-grid { display:block; }
body#crm-app.crm-v2 #dashboard-chart-card { display:none; }
body#crm-app.crm-v2 .dashboard-activity-card { border:1px solid var(--v2-line); border-radius:10px; }
/* Business list and an editor with an actual draft preview. */
body#crm-app.crm-v2 .business-page-heading { margin-bottom:24px; }
body#crm-app.crm-v2 .business-page-heading > div > :is(p,span),body#crm-app.crm-v2 .business-back-link { display:none; }
body#crm-app.crm-v2 #business-settings-page { display:flex; flex-direction:column; align-items:stretch; }
body#crm-app.crm-v2 #business-plan-overview { order:3; display:flex; flex-wrap:wrap; align-items:center; gap:16px; min-height:0; padding:16px 20px; margin-top:24px; background:white; color:var(--v2-ink); border:1px solid var(--v2-line); border-radius:10px; }
body#crm-app.crm-v2 #business-plan-overview::after { display:none; }
body#crm-app.crm-v2 .business-plan-heading { flex:1; gap:12px; }
body#crm-app.crm-v2 .business-plan-icon,body#crm-app.crm-v2 .business-plan-copy > :is(p,span) { display:none; }
body#crm-app.crm-v2 .business-plan-copy h2 { font-size:16px; color:var(--v2-ink); }
body#crm-app.crm-v2 .business-plan-metrics { flex:3; display:flex; gap:20px; }
body#crm-app.crm-v2 .business-plan-metric { padding:0; background:transparent; border:0; min-height:0; }
body#crm-app.crm-v2 .business-plan-metric > i,body#crm-app.crm-v2 .business-plan-metric > svg { display:none; }
body#crm-app.crm-v2 .business-plan-metric strong,body#crm-app.crm-v2 .business-plan-metric small,body#crm-app.crm-v2 .business-plan-metric > span { color:var(--v2-muted); font-size:12px; }
body#crm-app.crm-v2 .business-sections { display:grid; gap:22px; }
body#crm-app.crm-v2 .business-sections > section { padding:22px; border:1px solid var(--v2-line); border-radius:10px; }
body#crm-app.crm-v2 #negocios-list { grid-template-columns:1fr; gap:16px; }
body#crm-app.crm-v2 #negocios-list > [data-id] { padding:22px!important; border:1px solid var(--v2-line); border-radius:10px!important; }
body#crm-app.crm-v2 #negocios-list > [data-id] > .absolute { display:none; }
body#crm-app.crm-v2 #negocios-list h3 { font-size:22px; }
body#crm-app.crm-v2 .v2-business-head { display:flex; justify-content:space-between; gap:15px; align-items:center; }
body#crm-app.crm-v2 .v2-business-head > div:last-child { flex-wrap:wrap; }
body#crm-app.crm-v2 .v2-business-details { border-top:1px solid var(--v2-line); margin-top:18px; padding-top:16px; }
body#crm-app.crm-v2 .v2-business-details summary { cursor:pointer; font-weight:500; color:var(--v2-muted); }
body#crm-app.crm-v2 .v2-business-details > div { margin-top:18px; }
body#crm-app.crm-v2 .v2-business-connections { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; align-items:center; }
body#crm-app.crm-v2 #modal-negocio .modal-content { max-width:1100px!important; max-height:94dvh!important; padding:26px!important; border-radius:12px!important; }
body#crm-app.crm-v2 #form-negocio { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px 24px; }
body#crm-app.crm-v2 #form-negocio > div { grid-area:auto!important; margin:0!important; padding-top:0; }
body#crm-app.crm-v2 #form-negocio > div:nth-of-type(1) { grid-column:1/-1!important; padding:12px; background:white; }
body#crm-app.crm-v2 #form-negocio > div:nth-of-type(4) { grid-column:2!important; grid-row:2/5!important; padding:16px; background:white; border:1px solid var(--v2-line); border-radius:10px; }
body#crm-app.crm-v2 #form-negocio > div:last-child { grid-column:1/-1!important; position:static!important; padding-top:14px; background:white!important; }
body#crm-app.crm-v2 #n-desc { height:320px!important; min-height:220px; }
body#crm-app.crm-v2 #color-picker-container { display:flex; flex-wrap:wrap; overflow:visible; width:auto; }
body#crm-app.crm-v2 #modal-simulador .modal-content { max-width:520px; height:min(740px,90dvh); background:white; }
body#crm-app.crm-v2 #simulador-chat-box { background:#f5f7fa!important; }
body#crm-app.crm-v2 #modal-simulador { z-index:350; }
/* Sales */
body#crm-app.crm-v2 .vp-main { max-width:1500px!important; }
body#crm-app.crm-v2 .vp-mobile-heading { display:none!important; }
body#crm-app.crm-v2 .vp-metrics { gap:14px; }
body#crm-app.crm-v2 .vp-metric-card { min-height:100px!important; padding:18px!important; border:1px solid var(--v2-line); border-radius:10px!important; background:white!important; }
body#crm-app.crm-v2 .vp-metric-value { font-size:26px!important; white-space:nowrap; overflow-wrap:normal!important; word-break:normal; }
body#crm-app.crm-v2 .vp-metric-label { font-size:11px!important; letter-spacing:0; }
body#crm-app.crm-v2 .vp-list-panel { border:1px solid var(--v2-line); border-radius:10px!important; }
body#crm-app.crm-v2 .vp-list-heading { padding:20px!important; background:white; }
body#crm-app.crm-v2 .vp-list-heading h2 { font-size:19px; }
body#crm-app.crm-v2 .vp-list-heading p { display:none; }
body#crm-app.crm-v2 .vp-order-card { padding:20px!important; }
body#crm-app.crm-v2 .vp-order-amount { white-space:nowrap; font-size:19px!important; }
body#crm-app.crm-v2 .vp-order-details { max-height:85px; overflow:auto; background:transparent; border:0; padding:0; }
/* Collections */
body#crm-app.crm-v2 .billing-app-shell { margin:0!important; width:100%; }
body#crm-app.crm-v2 .billing-topbar { display:none!important; }
body#crm-app.crm-v2 .billing-hero { display:block; padding:0!important; margin-bottom:24px; min-height:0; background:transparent!important; border:0; border-radius:0; }
body#crm-app.crm-v2 .billing-hero-copy { display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center; }
body#crm-app.crm-v2 .billing-hero-copy > h1 { flex:1; }
body#crm-app.crm-v2 .billing-hero-copy > p,body#crm-app.crm-v2 .billing-kicker,body#crm-app.crm-v2 .billing-hero-art-wrap,body#crm-app.crm-v2 .billing-automation-card { display:none!important; }
body#crm-app.crm-v2 .billing-hero-actions { margin:0; }
body#crm-app.crm-v2 .billing-hero-actions button { min-height:42px; padding:10px 16px; border:1px solid var(--v2-green); border-radius:8px; }
body#crm-app.crm-v2 .billing-scan-button { background:white; color:var(--v2-green); }
body#crm-app.crm-v2 .billing-manual-button { background:var(--v2-green); color:white; }
body#crm-app.crm-v2 .billing-metrics { gap:14px; margin-bottom:24px; }
body#crm-app.crm-v2 .billing-metric { padding:18px; min-height:112px; border:1px solid var(--v2-line)!important; border-radius:10px; background:white!important; }
body#crm-app.crm-v2 .billing-metric strong { font-size:26px; color:var(--v2-ink)!important; white-space:nowrap; text-overflow:clip; }
body#crm-app.crm-v2 .billing-metric :is(small,.billing-metric-label) { color:var(--v2-muted)!important; }
body#crm-app.crm-v2 .billing-content-grid { grid-template-columns:1fr; }
body#crm-app.crm-v2 .billing-activity-panel { display:none; }
body#crm-app.crm-v2 .billing-cases-panel { border-radius:10px; }
body#crm-app.crm-v2 .billing-table :is(th,td) { font-size:13px; padding:15px; }
body#crm-app.crm-v2 .billing-table td small { font-size:11px; }
body#crm-app.crm-v2 .billing-panel-heading { padding:20px; }
body#crm-app.crm-v2 .assistant-fab { width:44px; height:44px; right:20px; background:var(--v2-green); }
/* Customers and client detail */
body#crm-app.crm-v2 .clientes-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
body#crm-app.crm-v2 .clientes-insights { display:none; }
body#crm-app.crm-v2 .clientes-directory-card { border:1px solid var(--v2-line); border-radius:10px; }
body#crm-app.crm-v2 .clientes-directory-heading { padding:22px; }
body#crm-app.crm-v2 .clientes-table-header,body#crm-app.crm-v2 .cliente-card { grid-template-columns:minmax(130px,1fr) minmax(135px,1fr) minmax(140px,1.1fr) 90px 95px 112px!important; min-width:760px; }
body#crm-app.crm-v2 .clientes-directory-table { overflow-x:auto; }
body#crm-app.crm-v2 #clientes-grid { overflow:visible; }
.v2-client-drawer { position:fixed; z-index:180; inset:0 0 0 auto; width:min(460px,100%); padding:26px; background:white; border-left:1px solid var(--v2-line); overflow:auto; box-shadow:-15px 0 45px #17233315; }
.v2-client-drawer[hidden] { display:none; }
.v2-client-drawer .v2-title-row { margin-top:10px; }
.v2-client-drawer h2 { font-size:24px; }
.v2-client-drawer section { margin-top:22px; border-top:1px solid var(--v2-line); padding-top:18px; }
.v2-client-drawer h3 { font-size:16px; margin-bottom:12px; }
.v2-detail-row { display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid #eef1f3; }
.v2-detail-row strong { display:block; margin-bottom:5px; font-weight:600; }
.v2-detail-row small { color:var(--v2-muted); }
/* Profile and subscription */
body#crm-app.crm-v2 #profile-layout { grid-template-columns:240px minmax(0,1fr); gap:22px; }
body#crm-app.crm-v2 .profile-card { border:1px solid var(--v2-line); border-radius:10px; }
body#crm-app.crm-v2 #profile-summary-card { padding:20px; }
body#crm-app.crm-v2 .profile-cover { display:none!important; }
body#crm-app.crm-v2 .profile-cover-art { display:none!important; }
body#crm-app.crm-v2 .profile-identity { margin-top:0; }
body#crm-app.crm-v2 .profile-avatar-control { width:68px; height:68px; margin:0 auto 12px; }
body#crm-app.crm-v2 #profile-plan-card { border:1px solid var(--v2-line); border-radius:10px; background:var(--v2-green); }
body#crm-app.crm-v2 .profile-page-heading h1 { font-size:30px; }
body#crm-app.crm-v2 #plan-status-banner { background:#e5f3ed; color:var(--v2-green); text-align:left; padding:16px 32px; font-size:13px; letter-spacing:0; }
body#crm-app.crm-v2 #card-pro { background:white; color:var(--v2-ink); border:2px solid var(--v2-green); transform:none; }
body#crm-app.crm-v2 #card-pro :is(.text-white,.text-brand-200) { color:var(--v2-ink); }
body#crm-app.crm-v2 #card-pro button { background:var(--v2-green); color:white; }
body#crm-app.crm-v2 #card-basic,body#crm-app.crm-v2 #card-business { border:1px solid var(--v2-line); }
.v2-plan-panel { margin:28px 32px; }
.v2-meter { height:7px; border-radius:10px; background:#e6eaec; overflow:hidden; margin-top:12px; }
.v2-meter span { display:block; height:100%; background:var(--v2-green); }
.v2-tabs { display:flex; gap:8px; margin-bottom:22px; border-bottom:1px solid var(--v2-line); }
.v2-tabs button { padding:12px 18px; background:transparent; border:0; border-bottom:2px solid transparent; color:var(--v2-muted); font-weight:600; cursor:pointer; }
.v2-tabs button[aria-selected=true] { color:var(--v2-green); border-color:var(--v2-green); }
.v2-report-filter { display:flex; gap:12px; margin-bottom:22px; }
.v2-report-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
body#crm-app.crm-v2 .modal-overlay:not(.active) { visibility:hidden; }
body#crm-app.crm-v2 .modal-overlay.active { visibility:visible; }
body#crm-app.crm-v2 .modal-overlay :is(.modal-content,.modal-box) { max-height:90dvh; overflow-y:auto; }
body#crm-app.crm-v2 .modal-overlay label { font-size:12px!important; letter-spacing:0!important; }
@media(min-width:1024px) {
 body#crm-app.crm-v2 #modal-negocio .v2-agent-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
 body#crm-app.crm-v2 #modal-negocio .business-instructions-heading { grid-column:1/-1; }
 body#crm-app.crm-v2 #modal-negocio #form-negocio { display:flex; flex-direction:column; gap:16px; }
 body#crm-app.crm-v2 #modal-negocio #form-negocio > div { grid-area:auto!important; }
 body#crm-app.crm-v2 #modal-negocio.active #modal-simulador.active { display:flex!important; position:sticky!important; top:0; width:100%; padding:0; opacity:1; visibility:visible; pointer-events:auto; align-self:start; }
 body#crm-app.crm-v2 #modal-negocio #modal-simulador > .absolute { display:none; }
 body#crm-app.crm-v2 #modal-negocio #modal-simulador > .modal-content { padding:0!important; max-height:75dvh!important; height:650px!important; border:1px solid var(--v2-line); border-radius:10px!important; transform:none; }
 body#crm-app.crm-v2 #modal-simulador .modal-content > div:first-child button { display:none; }
 body#crm-app.crm-v2 .chat-workspace { inset:0 0 0 var(--v2-side); max-width:none!important; width:auto!important; padding:0!important; grid-template-columns:320px minmax(0,1fr); }
 body#crm-app.crm-v2 .chat-workspace.has-contact-panel { grid-template-columns:285px minmax(0,1fr) 275px; }
 body#crm-app.crm-v2 .chat-workspace:not(.has-active-chat) { grid-template-columns:1fr; }
 body#crm-app.crm-v2 .chat-workspace:not(.has-active-chat) #chat-window { display:none!important; }
 body#crm-app.crm-v2 #chat-contact-panel { border-left:1px solid var(--v2-line); }
 body#crm-app.crm-v2 .chat-item-group { padding:17px 18px!important; }
}
body#crm-app.crm-v2 :is(#chat-sidebar,#chat-list,.chat-list-header,#chat-window,#chat-messages,.footer-dynamic,.input-dynamic) { background:white!important; color:var(--v2-ink)!important; }
body#crm-app.crm-v2 .chat-premium-hero { display:none!important; }
body#crm-app.crm-v2 .chat-list-title { margin-bottom:18px; }
body#crm-app.crm-v2 .chat-list-title h2 { font-size:22px; }
body#crm-app.crm-v2 .chat-item-group { min-height:90px; padding:15px!important; border-radius:0!important; border-bottom:1px solid var(--v2-line)!important; background:white!important; color:var(--v2-ink)!important; }
body#crm-app.crm-v2 .chat-item-group.is-active { background:#e9f6f0!important; }
body#crm-app.crm-v2 .chat-item-group .chat-open-name { color:var(--v2-ink)!important; }
body#crm-app.crm-v2 .chat-open-phone { display:none; }
body#crm-app.crm-v2 .chat-avatar { width:40px; height:40px; font-size:17px; color:var(--v2-green)!important; background:#e1f3eb!important; }
body#crm-app.crm-v2 .chat-filter-row { flex-wrap:wrap; overflow:visible; }
body#crm-app.crm-v2 .chat-filter-button { min-height:34px; padding:0 9px; font-size:11px; }
body#crm-app.crm-v2 .chat-open-name { font-size:14px; }
body#crm-app.crm-v2 .chat-open-preview { font-size:13px; }
body#crm-app.crm-v2 .chat-open-copy { overflow:hidden; }
body#crm-app.crm-v2 .delete-btn { display:none!important; }
body#crm-app.crm-v2 .bubble-in { background:#f0f3f5!important; color:var(--v2-ink)!important; }
body#crm-app.crm-v2 .bubble-out { background:#e1f5e9!important; color:var(--v2-ink)!important; }
body#crm-app.crm-v2 #chat-messages [class*="bg-gradient"] { background:#e1f5e9!important; color:var(--v2-ink)!important; }
body#crm-app.crm-v2 .chat-contact-panel { background:#f7f9fb!important; color:var(--v2-ink)!important; padding:16px; }
body#crm-app.crm-v2 .chat-contact-section { border:1px solid var(--v2-line); border-radius:10px; background:white; }
body#crm-app.crm-v2:has(#chat-sidebar) { --text-main:#172333; --text-muted:#667382; --header-bg:#fff; --header-border:#dfe5ea; --msg-in-bg:#f0f3f5; --msg-in-txt:#172333; --msg-out-bg:#e1f5e9; --msg-out-txt:#172333; --input-bg:#fff; --input-border:#dfe5ea; }
body#crm-app.crm-v2 .clientes-table-head { grid-template-columns:minmax(130px,1fr) minmax(135px,1fr) minmax(140px,1.1fr) 90px 95px 112px; min-width:760px; }
@media(max-width:1023px) {
 body#crm-app.crm-v2 {
   --v2-mobile-top:calc(62px + env(safe-area-inset-top));
   --v2-mobile-bottom:calc(68px + env(safe-area-inset-bottom));
   padding:var(--v2-mobile-top) 0 calc(var(--v2-mobile-bottom) + 14px)!important;
 }
 html:has(body#crm-app.crm-v2) { scroll-padding-block:calc(62px + env(safe-area-inset-top)) calc(68px + env(safe-area-inset-bottom)); }
 .v2-sidebar { display:none; }
 .v2-mobile-header { display:flex; position:fixed; inset:0 0 auto; height:var(--v2-mobile-top); z-index:55; align-items:center; justify-content:space-between; padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); border-bottom:1px solid var(--v2-line); background:white; }
 .v2-mobile-header .ry-brand-name { font-size:23px; }.v2-mobile-header .ry-brand-mark { width:32px; height:32px; border-radius:7px; background:var(--v2-green); }
 .v2-mobile-header > a:last-child { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--v2-line); border-radius:50%; color:var(--v2-green); }
 .v2-mobile-header > a[aria-current=page]:last-child { background:#e1f3eb; border-color:#bedbc9; }
 .v2-mobile-header svg { width:20px; height:20px; }
 .v2-mobile-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:fixed; inset:auto 0 0; min-height:var(--v2-mobile-bottom); z-index:65; padding:8px max(6px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); border-top:1px solid var(--v2-line); background:white; }
 .v2-mobile-nav :is(a,button) { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; padding:5px 2px; min-height:46px; border:0; border-radius:8px; background:transparent; text-decoration:none; color:var(--v2-muted); font-size:11px; }
 .v2-mobile-nav svg { width:21px; height:21px; }
 .v2-mobile-nav :is(a,button) { position:relative; isolation:isolate; }
 .v2-mobile-nav :is([aria-current=page],[data-current-section]) { color:#07553d; background:transparent; font-weight:750; }
 .v2-mobile-nav :is([aria-current=page],[data-current-section])::before {
   content:""; position:absolute; z-index:-1; top:3px; left:50%; width:44px; height:25px;
   transform:translateX(-50%); border-radius:14px; background:#d9efe1;
 }
 .v2-mobile-nav :is(a,button):active { background:#edf6ef; }
 :is(.v2-mobile-nav,.v2-mobile-header) :is(a,button):focus-visible { outline:2px solid #087c54; outline-offset:-2px; }
 body#crm-app.crm-v2 :is(main,.billing-main,#business-settings-page,#profile-page,.vp-main):not(.chat-workspace) { padding:22px 16px!important; }
 body#crm-app.crm-v2 h1 { font-size:25px!important; }
 body#crm-app.crm-v2 #dashboard-topbar { align-items:center; margin-bottom:22px; }
 body#crm-app.crm-v2 #dashboard-topbar-actions { display:none; }
 body#crm-app.crm-v2 #dashboard-metrics,.v2-stats { grid-template-columns:1fr 1fr; gap:10px; }
 body#crm-app.crm-v2 .dashboard-metric { min-height:100px; padding:14px; }
 body#crm-app.crm-v2 .dashboard-metric-value { font-size:23px; }
 .v2-card { padding:18px; }.v2-card h2 { font-size:18px; }
 .v2-stat { padding:16px; }.v2-stat strong { font-size:21px; }
 .v2-queue-row { grid-template-columns:26px minmax(0,1fr) auto; gap:10px; padding:18px 0; }
 .v2-queue-row .v2-button { padding:8px 9px; min-width:0; font-size:12px; }
 .v2-queue-row strong { font-size:14px; }.v2-queue-row p { font-size:12px; }
 body#crm-app.crm-v2 #business-plan-overview { display:block; padding:16px; }
 body#crm-app.crm-v2 .business-plan-metrics { display:flex; flex-wrap:wrap; margin-top:12px; }
 body#crm-app.crm-v2 .business-sections > section { padding:18px; }
 body#crm-app.crm-v2 #negocios-list > [data-id] { padding:18px!important; }
 body#crm-app.crm-v2 .v2-business-head { display:block; }
 body#crm-app.crm-v2 .v2-business-head > div:last-child { margin-top:16px; display:flex; gap:8px; }
 body#crm-app.crm-v2 .v2-business-head .v2-button { flex:1; font-size:13px; }
 body#crm-app.crm-v2 .modal-overlay { padding:10px!important; }
 body#crm-app.crm-v2 .modal-overlay :is(input:not([type=checkbox],[type=radio]),textarea) { font-size:max(16px,1em)!important; }
 body#crm-app.crm-v2 #modal-negocio .modal-content { width:100%; padding:20px!important; max-height:96dvh!important; }
 body#crm-app.crm-v2 #form-negocio { display:flex; flex-direction:column; gap:18px; }
 body#crm-app.crm-v2 #form-negocio > div:last-child { position:static!important; }
 body#crm-app.crm-v2 #color-picker-container { gap:10px; }
 body#crm-app.crm-v2 #n-desc { min-height:240px; height:260px!important; }
 body#crm-app.crm-v2 .business-instructions-heading h3 { font-size:22px; }
 body#crm-app.crm-v2 .vp-metrics { grid-template-columns:1fr 1fr!important; gap:10px!important; }
 body#crm-app.crm-v2 .vp-metric-card { min-height:92px!important; padding:14px!important; display:flex!important; flex-direction:column!important; align-items:flex-start!important; gap:6px; }
 body#crm-app.crm-v2 .vp-metric-icon { display:none!important; }
 body#crm-app.crm-v2 .vp-metric-value { font-size:22px!important; }
 body#crm-app.crm-v2 .vp-list-heading { padding:16px!important; display:flex; flex-direction:row; align-items:center; }
 body#crm-app.crm-v2 .vp-list-heading h2 { font-size:16px; }
 body#crm-app.crm-v2 .vp-list-heading button { width:auto; min-height:42px; padding:9px 12px; font-size:13px; }
 body#crm-app.crm-v2 .vp-filters { padding:14px!important; gap:8px; }
 body#crm-app.crm-v2 .vp-order-card { padding:16px!important; gap:12px; }
 body#crm-app.crm-v2 .vp-order-meta { background:white; padding:0; border:0; }
 body#crm-app.crm-v2 .vp-order-actions { flex-wrap:wrap; }
 body#crm-app.crm-v2 .billing-hero-copy { display:block; }
 body#crm-app.crm-v2 .billing-hero-actions { margin-top:16px; gap:8px; }
 body#crm-app.crm-v2 .billing-hero-actions button { flex:1; font-size:12px; padding:10px; }
 body#crm-app.crm-v2 .billing-metrics { grid-template-columns:1fr 1fr; gap:10px; }
 body#crm-app.crm-v2 .billing-metric { padding:14px; min-height:100px; }
 body#crm-app.crm-v2 .billing-metric strong { font-size:21px; white-space:nowrap; overflow:visible; }
 body#crm-app.crm-v2 .billing-panel-heading { padding:16px; }
 body#crm-app.crm-v2 .billing-table-wrap { overflow:visible; padding:0 14px 14px; }
 body#crm-app.crm-v2 .billing-table,body#crm-app.crm-v2 .billing-table tbody { display:block; width:100%; min-width:0; }
 body#crm-app.crm-v2 .billing-table thead { display:none; }
 body#crm-app.crm-v2 .billing-table tbody tr { display:grid; grid-template-columns:1fr 1fr; padding:14px 0; border-top:1px solid var(--v2-line); background:white; }
 body#crm-app.crm-v2 .billing-table td { display:block; width:auto; border:0; padding:7px 0!important; min-height:0; height:auto; font-size:13px; }
 body#crm-app.crm-v2 .billing-table td::before { display:none!important; }
 body#crm-app.crm-v2 .billing-table td:first-child { grid-column:1/-1; }
 body#crm-app.crm-v2 .billing-table td:last-child { grid-column:1/-1; }
 body#crm-app.crm-v2 .billing-row-actions { justify-content:flex-start; }
 body#crm-app.crm-v2 .assistant-fab { bottom:82px; }
 body#crm-app.crm-v2 .clientes-directory-heading { padding:18px; }
 body#crm-app.crm-v2 .clientes-table-header { display:none!important; }
 body#crm-app.crm-v2 .clientes-table-head { display:none!important; }
 body#crm-app.crm-v2 .clientes-table { min-width:0; }
 body#crm-app.crm-v2 .cliente-card { display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; min-width:0; padding:16px; gap:10px; }
 body#crm-app.crm-v2 .clientes-contact-cell { grid-column:1; }
 body#crm-app.crm-v2 .clientes-interaction-cell { display:none; }
 body#crm-app.crm-v2 .clientes-actions-cell { grid-column:2; grid-row:1/3; flex-wrap:wrap; }
 body#crm-app.crm-v2 .clientes-status-cell,body#crm-app.crm-v2 .clientes-tags-cell { grid-row:3; }
 body#crm-app.crm-v2 #profile-layout { display:flex; flex-direction:column; }
 body#crm-app.crm-v2 #profile-summary-column { display:none; }
 body#crm-app.crm-v2 #profile-settings-grid { grid-template-columns:1fr; }
 body#crm-app.crm-v2 .profile-card { padding:20px; }
 body#crm-app.crm-v2 .chat-workspace { position:fixed; inset:var(--v2-mobile-top) 0 var(--v2-mobile-bottom)!important; padding:0!important; width:100%!important; display:flex!important; }
 body#crm-app.crm-v2 #chat-sidebar { width:100%; border:0; }
 body#crm-app.crm-v2 .chat-workspace.has-active-chat #chat-sidebar { display:none!important; }
 body#crm-app.crm-v2 #chat-window { width:100%; height:100%; }
 body#crm-app.crm-v2:has(.chat-workspace.has-active-chat) .v2-mobile-nav { display:none; }
 body#crm-app.crm-v2 .chat-workspace.has-active-chat { bottom:0!important; }
 body#crm-app.crm-v2 #chat-contact-panel { display:none; }
 body#crm-app.crm-v2 .chat-list-header { padding:18px 16px 12px; }
 body#crm-app.crm-v2 .chat-filter-row { gap:5px; }
 body#crm-app.crm-v2 .chat-filter-button { font-size:11px; padding:0 7px; }
 body#crm-app.crm-v2 #chat-messages { padding:16px!important; }
 body#crm-app.crm-v2 #chat-active-name { font-size:14px; }
 body#crm-app.crm-v2 #chat-status-container button { font-size:11px; }
 body#crm-app.crm-v2 .footer-dynamic { padding:10px!important; }
 body#crm-app.crm-v2 #chat-input { font-size:16px!important; min-height:44px!important; }
 .v2-report-grid { grid-template-columns:1fr; }.v2-report-filter { flex-wrap:wrap; }
 .v2-plan-panel { margin:22px 16px; }
 .v2-tabs { gap:0; }.v2-tabs button { flex:1; padding:12px 6px; }
}
@media(max-width:1023px) and (prefers-reduced-motion:no-preference) {
 .v2-mobile-nav svg { transition:transform 140ms ease-out; }
 .v2-mobile-nav :is(a,button):active svg { transform:scale(.88); }
}
@media(prefers-reduced-motion:reduce) { body#crm-app.crm-v2 *,body#crm-app.crm-v2 *::before,body#crm-app.crm-v2 *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Business directory: use the full canvas and compact the advisor controls. */
body#crm-app.crm-v2 .business-sections { grid-template-columns:minmax(0,1fr); gap:18px; }
body#crm-app.crm-v2 .business-sections > section { grid-column:auto; grid-row:auto; min-width:0; border-radius:14px; }
body#crm-app.crm-v2 .business-sections > section > div:first-child { margin-bottom:16px; }
body#crm-app.crm-v2 .business-sections h2 { font-size:19px; }
body#crm-app.crm-v2 .business-sections h2 svg { width:20px; height:20px; color:var(--v2-green); }
body#crm-app.crm-v2 #btn-nuevo-asesor:not(.hidden) { display:flex; background:#edf7f3; color:#086b54; border:1px solid #cce8dc; }
body#crm-app.crm-v2 #btn-nuevo-asesor:not(.hidden):hover { background:#dff1e8; }
body#crm-app.crm-v2 #negocios-list > [data-id] { background:#f9fbfa; }
body#crm-app.crm-v2 .v2-business-head > div:first-child { min-width:0; overflow-wrap:anywhere; }
body#crm-app.crm-v2 .v2-business-head > div:first-child p { color:var(--v2-muted); font-size:12px; }
body#crm-app.crm-v2 .v2-business-details summary { padding:4px 0; }
body#crm-app.crm-v2 .business-advisors-panel #asesores-list { grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:12px; }
body#crm-app.crm-v2 .business-advisors-panel #asesores-list > .group { display:grid; grid-template-columns:40px minmax(0,1fr) 44px; grid-template-rows:auto auto auto; align-items:center; gap:3px 10px; min-height:0; padding:14px; text-align:left; border-radius:12px; }
body#crm-app.crm-v2 #asesores-list > .group > div:first-of-type { grid-area:1/1/3/2; width:40px; height:40px; margin:0; border:0; border-radius:10px; background:#e4f3ed; }
body#crm-app.crm-v2 #asesores-list > .group > div:first-of-type svg { width:21px; height:21px; color:var(--v2-green); }
body#crm-app.crm-v2 #asesores-list > .group > h3 { grid-area:1/2; font-size:15px; }
body#crm-app.crm-v2 #asesores-list > .group > p { grid-area:2/2; margin:0; padding:0; border:0; background:none; color:var(--v2-muted); font-size:12px; text-transform:none; }
body#crm-app.crm-v2 #asesores-list > .group > button { position:static; grid-area:1/3/3/4; width:44px; height:44px; padding:0; display:grid; place-items:center; color:var(--v2-muted); opacity:1; }
body#crm-app.crm-v2 #asesores-list > .group > button:hover { background:#fef0ee; color:#aa2c29; }
body#crm-app.crm-v2 #asesores-list > .group > div:last-child { grid-area:3/1/4/-1; width:100%; margin:8px 0 0; }
body#crm-app.crm-v2 #asesores-list > .group > div:last-child > :is(span,button) { min-height:44px; padding:6px 8px; font-size:12px; text-transform:none; }

/* Inbox: one light palette for the workspace, thread and mobile controls. */
body#crm-app.crm-v2 main.chat-workspace { width:auto!important; max-width:none!important; margin:0!important; padding:0!important; min-height:0; background:white!important; }
body#crm-app.crm-v2 #chat-sidebar { width:auto; min-width:0; height:100%; border-color:var(--v2-line); }
body#crm-app.crm-v2 .chat-list-header { padding:18px 16px 12px; border-bottom:1px solid var(--v2-line); }
body#crm-app.crm-v2 .chat-list-title { margin-bottom:12px; }
body#crm-app.crm-v2 .chat-list-title h2 { font-size:19px; }
body#crm-app.crm-v2 .chat-list-search { min-height:44px; padding:0 10px; border:1px solid var(--v2-line); border-radius:10px; background:#f6f8fa!important; color:var(--v2-muted)!important; }
body#crm-app.crm-v2 .chat-list-search:focus-within { border-color:var(--v2-green); }
body#crm-app.crm-v2 #chat-search { padding:0; border:0; border-radius:0!important; background:transparent!important; color:var(--v2-ink)!important; }
body#crm-app.crm-v2 #chat-search::placeholder { color:var(--v2-muted)!important; }
body#crm-app.crm-v2 #chat-search::-webkit-search-cancel-button { display:none; }
body#crm-app.crm-v2 #chat-search-clear { color:var(--v2-muted); width:28px; height:32px; flex:none; }
body#crm-app.crm-v2 .chat-filter-row { margin-top:9px; gap:6px; }
body#crm-app.crm-v2 .chat-filter-button { min-height:36px; gap:5px; padding:0 8px; border:1px solid var(--v2-line)!important; border-radius:8px; background:white!important; color:#536375!important; }
body#crm-app.crm-v2 .has-active-chat .chat-filter-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
body#crm-app.crm-v2 .has-active-chat .chat-filter-button { justify-content:center; width:100%; }
body#crm-app.crm-v2 .chat-filter-button:is(.is-active,[aria-expanded=true]) { border-color:#afdccc!important; background:#e6f4ee!important; color:#086b54!important; }
body#crm-app.crm-v2 .chat-filter-button > span { color:#426457!important; background:#edf3f0!important; }
body#crm-app.crm-v2 .chat-label-menu { border-color:var(--v2-line)!important; background:white!important; }
body#crm-app.crm-v2 .chat-label-option,body#crm-app.crm-v2 .chat-label-empty { color:#536375!important; }
body#crm-app.crm-v2 .chat-label-option:is(:hover,.is-active) { color:var(--v2-green)!important; background:#edf7f3!important; }
body#crm-app.crm-v2 #chat-list { padding:0; }
body#crm-app.crm-v2 #chat-list .chat-item-group { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px; min-height:76px; margin:0; padding:10px 12px!important; border:0!important; border-bottom:1px solid #e9eef0!important; box-shadow:none; }
body#crm-app.crm-v2 #chat-list .chat-item-group:hover { background:#f5faf8!important; }
body#crm-app.crm-v2 #chat-list .chat-item-group.is-active { background:#e8f5ef!important; box-shadow:inset 3px 0 var(--v2-green); }
body#crm-app.crm-v2 .chat-open-copy { display:grid; gap:2px; }
body#crm-app.crm-v2 .chat-open-preview { display:block; margin:0; color:#536375!important; white-space:nowrap; }
body#crm-app.crm-v2 .chat-open-time { color:var(--v2-muted)!important; font-variant-numeric:tabular-nums; }
body#crm-app.crm-v2 .chat-open-meta { margin-top:3px; }
body#crm-app.crm-v2 .chat-avatar-status { border-color:white; box-shadow:none; }
body#crm-app.crm-v2 .chat-list-tag,body#crm-app.crm-v2 .chat-list-mode { color:#086b54!important; background:#e8f5ef!important; border:0; }
body#crm-app.crm-v2 .chat-list-mode.is-human { color:#5743a2!important; background:#f0edfa!important; }
body#crm-app.crm-v2 .chat-unread-count { background:var(--v2-green); box-shadow:none; }
body#crm-app.crm-v2 #chat-list .chat-delete-button { width:34px; height:42px; border:0!important; border-radius:8px; background:transparent!important; color:#687785!important; }
body#crm-app.crm-v2 #chat-list .chat-delete-button:is(:hover,:focus-visible) { color:#a92828!important; background:#fef1f1!important; }
body#crm-app.crm-v2 .chat-empty-state,body#crm-app.crm-v2 .chat-empty-state strong { color:var(--v2-muted)!important; }
body#crm-app.crm-v2 .chat-thread-header { background:white!important; color:var(--v2-ink)!important; border-color:var(--v2-line)!important; }
body#crm-app.crm-v2 :is(#chat-active-name,.mobile-chat-back) { color:var(--v2-ink)!important; }
body#crm-app.crm-v2 #chat-active-avatar { background:#e1f3eb!important; color:var(--v2-green)!important; }
body#crm-app.crm-v2 #chat-messages { background:#f4f7f8!important; }
body#crm-app.crm-v2 #chat-messages > .flex.flex-col { margin-top:0; margin-bottom:12px; }
body#crm-app.crm-v2 #chat-messages .msg-in { background:white!important; color:var(--v2-ink)!important; border:1px solid var(--v2-line)!important; border-radius:13px 13px 13px 4px!important; }
body#crm-app.crm-v2 #chat-messages .msg-out { background:#def1e8!important; color:#123c30!important; border:1px solid #cce7da!important; border-radius:13px 13px 4px 13px!important; }
body#crm-app.crm-v2 #chat-messages [class*="text-slate-"] { color:var(--v2-muted); }
body#crm-app.crm-v2 #chat-window > .header-dynamic:last-child { border-color:var(--v2-line); background:white!important; padding:10px 14px max(10px,env(safe-area-inset-bottom)); }
body#crm-app.crm-v2 .chat-composer form { align-items:center; }
body#crm-app.crm-v2 .chat-composer .chat-attachment { padding:0; border:0; background:none; }
body#crm-app.crm-v2 .chat-composer :is(.chat-attachment button,#btn-record,#chat-submit) { display:grid; place-items:center; width:44px; height:44px; padding:0; }
body#crm-app.crm-v2 .chat-composer .chat-attachment button { color:var(--v2-muted); border:1px solid var(--v2-line); background:#f6f8fa; }
body#crm-app.crm-v2 .chat-composer .chat-draft { display:flex; min-width:0; }
body#crm-app.crm-v2 #chat-window #chat-input { min-height:44px!important; padding:10px 12px; border-radius:10px!important; background:#f6f8fa!important; color:var(--v2-ink)!important; }
body#crm-app.crm-v2 #chat-window #chat-input::placeholder { color:var(--v2-muted); }
body#crm-app.crm-v2 #chat-window #btn-record { color:var(--v2-muted); }
body#crm-app.crm-v2 #chat-window #chat-submit,body#crm-app.crm-v2 .chat-compose-fab { background:var(--v2-green)!important; }
body#crm-app.crm-v2 #chat-window #chat-submit:disabled { opacity:.5; }
@media(min-width:1024px) {
 body#crm-app.crm-v2 main.chat-workspace { inset:0 0 0 var(--v2-side); grid-template-columns:300px minmax(0,1fr)!important; }
 body#crm-app.crm-v2 main.chat-workspace:not(.has-active-chat) { grid-template-columns:minmax(0,1fr)!important; }
 body#crm-app.crm-v2 main.chat-workspace:not(.has-active-chat) #chat-list .chat-item-group { padding-inline:18px!important; }
 body#crm-app.crm-v2 main.chat-workspace:not(.has-active-chat) #chat-sidebar > * { width:min(100%,680px); margin-inline:auto; }
}
@media(min-width:1280px) {
 body#crm-app.crm-v2 main.chat-workspace.has-active-chat.has-contact-panel { grid-template-columns:clamp(280px,22vw,330px) minmax(0,1fr) clamp(235px,19vw,280px)!important; }
}
@media(max-width:1279px) and (min-width:1024px) {
 body#crm-app.crm-v2 #chat-contact-panel:not(.hidden) { display:none!important; }
}
@media(max-width:1023px) {
 body#crm-app.crm-v2 #chat-sidebar { width:100%; }
 body#crm-app.crm-v2 .chat-list-title { display:flex; }
 body#crm-app.crm-v2 .chat-list-header { padding:14px 14px 12px; }
 body#crm-app.crm-v2 .chat-filter-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 body#crm-app.crm-v2 .chat-filter-button { justify-content:center; width:100%; min-height:40px; }
 body#crm-app.crm-v2 .chat-label-menu { inset-inline:auto 0; }
 body#crm-app.crm-v2 #chat-list .chat-delete-button { opacity:1; }
 body#crm-app.crm-v2 .mobile-chat-back { display:grid!important; place-items:center; min-width:36px; min-height:42px; }
 body#crm-app.crm-v2 .chat-thread-header > div:first-child,body#crm-app.crm-v2 .chat-thread-header > div:first-child > div:last-child { min-width:0; }
 body#crm-app.crm-v2 #chat-active-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 body#crm-app.crm-v2 .chat-thread-actions { gap:4px; flex:none; }
 body#crm-app.crm-v2 .chat-icon-button { width:34px; height:42px; }
 body#crm-app.crm-v2 #chat-window #chat-input { font-size:16px!important; }
}

/* Fit working data and actions to the device width. */
body#crm-app.crm-v2 #v2-report-content .v2-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
body#crm-app.crm-v2 .v2-report-filter { align-items:center; }
body#crm-app.crm-v2 #v2-report-period { padding:0 32px 0 12px; border:1px solid var(--v2-line); }
body#crm-app.crm-v2 .v2-stat strong,body#crm-app.crm-v2 .billing-metric strong,body#crm-app.crm-v2 .vp-metric-value,body#crm-app.crm-v2 .dashboard-metric-value { white-space:normal; overflow-wrap:anywhere!important; }
body#crm-app.crm-v2 :is(.billing-metric,.vp-metric-card,.dashboard-metric) { min-width:0; }
body#crm-app.crm-v2 :is(.vp-list-heading,.billing-panel-heading,.clientes-directory-heading) { gap:12px; }
body#crm-app.crm-v2 .clientes-directory-table { scrollbar-width:thin; }
body#crm-app.crm-v2 .v2-plan-panel,body#crm-app.crm-v2 #plan-status-banner { width:min(calc(100% - 64px),1120px); margin-inline:auto; }
body#crm-app.crm-v2 #plan-status-banner { border:1px solid #cce8dc; border-radius:10px; background:#e5f3ed; }
@media(max-width:1023px) {
 body#crm-app.crm-v2 #profile-summary-column { display:block; }
 body#crm-app.crm-v2 #profile-layout { gap:14px; }
 body#crm-app.crm-v2 #profile-summary-card { padding:16px; }
 body#crm-app.crm-v2 #profile-summary-card .profile-avatar-control { width:54px; height:54px; }
 body#crm-app.crm-v2 #profile-summary-column > section { margin-block:0 12px; }
 body#crm-app.crm-v2 .v2-plan-panel,body#crm-app.crm-v2 #plan-status-banner { width:calc(100% - 32px); }
 body#crm-app.crm-v2 .business-sections { gap:14px; }
 body#crm-app.crm-v2 .business-sections > section { padding:16px; }
 body#crm-app.crm-v2 .v2-business-head > .flex { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) 40px; }
 body#crm-app.crm-v2 .v2-business-head .v2-button { padding:8px 5px; gap:4px; }
 body#crm-app.crm-v2 .v2-business-head .v2-button svg { width:15px; height:15px; flex:none; }
 body#crm-app.crm-v2 .billing-table tbody tr { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px 12px; }
 body#crm-app.crm-v2 .billing-table td { min-width:0; overflow-wrap:anywhere; }
 body#crm-app.crm-v2 .billing-row-actions { flex-wrap:wrap; }
}
@media(max-width:540px) {
 body#crm-app.crm-v2 #v2-report-content .v2-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body#crm-app.crm-v2 #v2-report-content .v2-stat:last-child:nth-child(odd) { grid-column:1/-1; }
 body#crm-app.crm-v2 .v2-stat { padding:14px; }
 body#crm-app.crm-v2 .v2-business-head .v2-button { font-size:12px; }
}
@media(max-width:370px) {
 body#crm-app.crm-v2 .v2-business-head > .flex { grid-template-columns:minmax(0,1fr) 40px; }
 body#crm-app.crm-v2 .v2-business-head > .flex > .secondary { grid-column:1/-1; }
}

.crm-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.crm-chat-tools { flex:none; padding:8px 14px; border-bottom:1px solid var(--v2-line); background:#fff; font-size:13px; }
.crm-chat-tools summary { cursor:pointer; font-weight:600; }
.crm-chat-tools summary span { color:var(--v2-muted); font-weight:400; }
.crm-chat-tools details > .crm-actions { margin:8px 0; }
.crm-chat-tools label { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.crm-chat-tools select { max-width:100%; }
.crm-chat-tools [data-chat-window-hint] { margin:6px 0 0; color:var(--v2-muted); }
.crm-chat-send-error { margin:4px 0 12px; color:#a92828; font-size:12px; }
.crm-record-detail { width:min(580px,calc(100% - 24px)); max-height:calc(100dvh - 24px); margin:auto; padding:24px; border:1px solid var(--v2-line); border-radius:16px; color:var(--v2-ink); background:#fff; overflow:auto; }
.crm-record-detail::backdrop { background:#12253880; }
.crm-record-detail > button:first-child { float:right; }
.crm-record-detail h2 { font-size:22px; margin:0 0 20px; }
.crm-record-detail h3,.crm-channel-list h2,.crm-whatsapp-next h2,.crm-business-channel h2 { font-weight:650; margin:0 0 8px; }
.crm-record-detail section { border-top:1px solid var(--v2-line); padding-block:12px; }
.crm-record-detail dl { display:grid; grid-template-columns:minmax(96px,1fr) minmax(0,2fr); gap:6px 12px; font-size:14px; }
.crm-record-detail dt { color:var(--v2-muted); }
.crm-record-detail dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.crm-record-detail > :is(a,button):not(:first-child) { margin:6px 6px 0 0; }
.crm-channel-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:14px; margin:16px 0; }
.crm-channel-list p { margin-top:8px; color:var(--v2-muted); font-size:14px; overflow-wrap:anywhere; }
.crm-whatsapp-next ol { padding-left:22px; list-style:decimal; margin:10px 0 16px; }
.crm-whatsapp-next li { margin:6px 0; }
.crm-business-channel { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
