.elx-ent-launch{background:#0d47a1;color:#fff;border:0;border-radius:12px;padding:14px 22px;font-weight:800;cursor:pointer}
.elx-ent-modal{position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px}
.elx-ent-box{width:min(1180px,96vw);max-height:92vh;overflow:auto;background:#f8fafc;color:#06142f;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.35);border:1px solid #e2e8f0}
.elx-ent-head{position:sticky;top:0;background:#fff;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e2e8f0}.elx-ent-head h2{margin:0;font-size:24px;font-weight:900;color:#06142f}.elx-ent-close{background:#111827;color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.elx-ent-body{padding:18px}.elx-ent-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.elx-ent-tab{background:#fff;border:1px solid #cbd5e1;color:#0f172a;border-radius:11px;padding:10px 14px;font-weight:800;cursor:pointer}.elx-ent-tab.active{background:#0d47a1;color:#fff;border-color:#0d47a1}.elx-ent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.elx-ent-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px;box-shadow:0 6px 20px rgba(15,23,42,.04)}.elx-ent-card h3,.elx-ent-card h4{margin:0 0 8px;color:#06142f}.elx-ent-value{font-size:26px;font-weight:900;color:#06142f}.elx-ent-muted{color:#64748b;font-size:12px}.elx-ent-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 16px}.elx-ent-primary,.elx-ent-secondary{border:0;border-radius:11px;padding:11px 15px;font-weight:900;cursor:pointer}.elx-ent-primary{background:#0d47a1;color:#fff}.elx-ent-secondary{background:#fff;color:#0f172a;border:1px solid #cbd5e1}.elx-ent-table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}.elx-ent-table th,.elx-ent-table td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:13px}.elx-ent-table th{background:#f1f5f9;color:#0f172a;font-weight:900}.elx-ent-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#ffd4c6;display:inline-flex;align-items:center;justify-content:center;font-weight:900;color:#06142f;margin-right:8px;vertical-align:middle}.elx-ent-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.elx-ent-field label{display:block;font-weight:800;font-size:13px;margin:0 0 5px;color:#0f172a}.elx-ent-field input,.elx-ent-field select,.elx-ent-field textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff;color:#0f172a}.elx-ent-span2{grid-column:span 2}.elx-ent-span3{grid-column:span 3}.elx-ent-kanban{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.elx-ent-col{background:#06101d;color:#fff;border-radius:14px;padding:14px;min-height:230px}.elx-ent-col h3{color:#ff6b00;margin:0 0 10px}.elx-ent-lead{border-top:1px solid rgba(255,255,255,.12);padding:12px 0}.elx-ent-badge{display:inline-block;border-radius:6px;padding:3px 7px;background:#ff6b00;color:#111;font-weight:900;font-size:12px}.elx-ent-badge.hot{background:#b91c1c;color:#fff}.elx-ent-badge.cold{background:#fde047;color:#111}.elx-ent-progress{height:8px;border-radius:99px;background:#e2e8f0;overflow:hidden}.elx-ent-progress span{display:block;height:100%;background:#0d47a1}.elx-ent-canvas{width:100%;height:190px;display:block}.elx-ent-real{display:inline-flex;align-items:center;gap:6px;color:#16a34a;font-size:12px;font-weight:900}.elx-ent-real:before{content:'';width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.15)}
@media(max-width:900px){.elx-ent-grid{grid-template-columns:repeat(2,1fr)}.elx-ent-form{grid-template-columns:1fr}.elx-ent-span2,.elx-ent-span3{grid-column:auto}.elx-ent-kanban{grid-template-columns:1fr}.elx-ent-head h2{font-size:18px}}@media(max-width:560px){.elx-ent-grid{grid-template-columns:1fr}.elx-ent-modal{padding:8px}.elx-ent-body{padding:12px}.elx-ent-table{font-size:12px}}
/* Enterprise 11 responsive hardening */
.elx-ent-table{min-width:720px}.elx-ent-body{overflow-x:hidden}#elx-ent-content{overflow-x:auto}.elx-ent-card p{margin:4px 0 0}.elx-ent-field span{display:block;font-weight:800;margin-bottom:5px}.elx-ent-card .elx-ent-progress{margin-top:5px}.elx-ent-kanban{align-items:start}.elx-ent-col{max-height:62vh;overflow:auto}.elx-ent-tabs{position:sticky;top:73px;background:#f8fafc;z-index:1;padding-bottom:8px}.elx-ent-modal a{color:#0d47a1;font-weight:800}.elx-ent-form textarea{min-height:74px}
@media(max-width:760px){.elx-ent-box{width:100vw;max-height:96vh;border-radius:12px}.elx-ent-head{align-items:flex-start}.elx-ent-close{padding:8px 10px}.elx-ent-tabs{top:64px;display:grid;grid-template-columns:1fr 1fr}.elx-ent-tab{padding:9px 8px;font-size:12px}.elx-ent-actions{display:grid;grid-template-columns:1fr}.elx-ent-primary,.elx-ent-secondary{width:100%}.elx-ent-value{font-size:22px}.elx-ent-table th,.elx-ent-table td{font-size:12px;padding:8px}.elx-ent-canvas{height:160px}.elx-ent-col{max-height:none}.elx-ent-head h2{font-size:17px}.elx-ent-real{font-size:11px}}
@media(max-width:420px){.elx-ent-tabs{grid-template-columns:1fr}.elx-ent-modal{padding:4px}.elx-ent-body{padding:9px}.elx-ent-card{padding:10px}.elx-ent-table{min-width:640px}}

/* Botón visible para borrar citas en Agenda / Citas */
.elx-ent-danger,.elx-ent-delete-cita{background:#dc2626!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:10px 14px!important;font-weight:900!important;cursor:pointer!important;display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;box-shadow:0 8px 18px rgba(220,38,38,.25)!important;}
.elx-ent-danger:hover,.elx-ent-delete-cita:hover{background:#991b1b!important;}
.elx-ent-danger:disabled,.elx-ent-delete-cita:disabled{opacity:.65!important;cursor:wait!important;}

/* FIX: pipeline CRM con borrar y sin huecos negros */
.elx-ent-kanban{align-items:start!important;grid-auto-rows:min-content!important}
.elx-ent-col{align-self:start!important;height:auto!important;min-height:120px!important;max-height:none!important;overflow:visible!important}
.elx-ent-lead-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.elx-ent-lead .elx-ent-danger{padding:8px 10px!important;border-radius:9px!important;font-size:12px!important}
