/* CRM Xtrim v2.7.8 · Contactos adopta el look & feel operativo de Leads */
.contacts-v278{min-width:0;max-width:100%;display:grid;gap:16px}.contacts-v278 .ct-hero{padding:22px}.ct-hero-actions{display:flex;align-items:center;gap:14px}.ct-hero-actions>strong{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:48px;border:1px solid #d3deed;border-radius:14px;background:#fff;font-size:17px}.ct-toolbar-card{padding:12px 14px}.ct-toolbar-main{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid #e5ebf4}.ct-search{width:100%;height:52px;border:1px solid #ced9ea;border-radius:14px;background:#fff;padding:0 16px;font-size:15px}.ct-toolbar-button{height:52px;white-space:nowrap}.ct-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:999px;background:#265bd8;color:#fff;margin-left:5px}.ct-toolbar-bulk{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:12px}.ct-bulk-actions{display:grid;grid-template-columns:minmax(210px,280px) minmax(210px,280px) auto auto;gap:12px}.ct-bulk-actions select{height:48px;border:1px solid #ced9ea;border-radius:13px;background:#fff;padding:0 14px;font-weight:700}.ct-filter-panel{padding:14px;display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:12px;align-items:end}.ct-filter-panel.hidden{display:none}.ct-filter-panel label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#475467}.ct-filter-panel select,.ct-filter-panel input{height:48px;border:1px solid #ced9ea;border-radius:13px;background:#fff;padding:0 12px;font-weight:700}.ct-filter-panel .btn{height:48px}.ct-message{min-height:0;margin:0;padding:0 4px}.ct-table-card{overflow:hidden;padding:0}.ct-table-scroll{overflow:auto;max-width:100%}.ct-table{table-layout:fixed;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.ct-table th{position:relative;height:58px;background:#f7faff;border-bottom:1px solid #dce5f0;color:#172033;font-size:13px;font-weight:900;text-align:left}.ct-table td{height:78px;border-bottom:1px solid #e6edf5;font-size:13px}.ct-table th,.ct-table td{padding:0;border-right:1px solid #edf1f6}.ct-table th:last-child,.ct-table td:last-child{border-right:0}.ct-th-inner,.ct-cell{min-width:0;height:100%;display:flex;align-items:center;gap:7px;padding:0 14px;overflow:hidden}.ct-cell{white-space:nowrap;text-overflow:ellipsis}.ct-cell>*{min-width:0}.ct-sort-indicator{font-size:11px;color:#6680ad}.ct-resizer{position:absolute;top:12px;bottom:12px;right:-3px;width:7px;cursor:col-resize;z-index:2}.ct-resizer:after{content:"";position:absolute;left:3px;top:0;bottom:0;width:2px;background:#c7d3e4;border-radius:2px}.ct-table th[data-col="select"],.ct-table td[data-col="select"]{width:48px;min-width:48px;max-width:48px;border-right:0}.ct-table th[data-col="edit"],.ct-table td[data-col="edit"]{width:88px;min-width:88px;max-width:88px;border-right:0}.ct-table th[data-col="activity"],.ct-table td[data-col="activity"]{width:64px;min-width:64px;max-width:64px}.ct-table th[data-col="select"] .ct-th-inner,.ct-table td[data-col="select"] .ct-cell,.ct-table th[data-col="edit"] .ct-th-inner,.ct-table td[data-col="edit"] .ct-cell,.ct-table th[data-col="activity"] .ct-th-inner,.ct-table td[data-col="activity"] .ct-cell{justify-content:center;padding-left:5px;padding-right:5px}.ct-fixed-actions{display:flex;align-items:center;gap:5px}.ct-icon-btn{width:36px;height:36px;border:1px solid #cbd8eb;border-radius:11px;background:#fff;cursor:pointer;font-size:16px;transition:.16s ease}.ct-icon-btn:hover,.ct-contact-count:hover,.ct-toolbar-button:hover,.ct-filter-panel .btn:hover,.ct-pager button:hover,.ct-columns-drawer button:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(30,64,175,.13);border-color:#8eace5}.ct-icon-btn.success{color:#1747ac}.ct-icon-btn.danger{color:#b42318}.ct-contact-count{min-width:36px;height:34px;border:1px solid #bfd1f1;border-radius:999px;background:#eef4ff;color:#1747ac;font-weight:900;cursor:pointer;transition:.16s ease}.ct-inline-input{width:100%;height:42px;border:1px solid #b8c9e3;border-radius:11px;padding:0 11px;background:#fff}.ct-state-pill,.badge-channel{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#eef3fb;color:#344054;font-size:11px;font-weight:800}.ct-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:14px 18px;color:#667085}.ct-footer label{display:flex;align-items:center;gap:8px}.ct-footer select{height:40px;border:1px solid #ced9ea;border-radius:10px;background:#fff;padding:0 10px}.ct-pager{justify-self:end;display:flex;align-items:center;gap:7px}.ct-pager button{min-width:40px;height:40px;border:1px solid #d0d9e8;border-radius:11px;background:#fff;font-weight:800;cursor:pointer}.ct-pager button.active{background:#285bd7;color:#fff;border-color:#285bd7}.ct-pager button:disabled{opacity:.4;cursor:not-allowed}.ct-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:94}.ct-columns-drawer{position:fixed;top:0;right:0;bottom:0;width:min(560px,100vw);background:#fff;z-index:95;transform:translateX(102%);transition:transform .2s ease;box-shadow:-18px 0 50px rgba(15,23,42,.18);display:grid;grid-template-rows:auto auto 1fr auto;padding:28px 28px 18px}.ct-columns-drawer.open{transform:translateX(0)}.ct-columns-drawer header{display:flex;justify-content:space-between;gap:16px}.ct-columns-drawer h2{margin:0 0 7px}.ct-columns-drawer p{margin:0;color:#667085}.ct-columns-note{margin:20px 0;padding:16px 18px;border:1px solid #dce5f0;border-radius:16px;background:#f7f9fc;color:#667085}.ct-columns-list{overflow:auto;padding-right:6px}.ct-column-item{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;min-height:76px;border-bottom:1px solid #e7edf5}.ct-column-item label{font-size:17px}.ct-column-item input{width:22px;height:22px}.ct-column-item button{width:44px;height:44px;border:1px solid #ced9ea;border-radius:12px;background:#fff;cursor:pointer}.ct-columns-drawer footer{display:flex;justify-content:flex-end;gap:12px;padding-top:16px}.contacts-drawer-tabs{position:sticky;top:0;z-index:3;background:#fff;display:flex;gap:6px;margin:0 0 16px;padding:0 0 8px;border-bottom:1px solid #dfe6ef}.contacts-drawer-tabs button{min-height:44px;border:0;border-radius:10px 10px 0 0;background:transparent;padding:0 14px;font-weight:800;color:#667085;cursor:pointer}.contacts-drawer-tabs button.active{background:#eef4ff;color:#1747ac;box-shadow:inset 0 -3px #285bd7}.contacts-drawer-tabs button span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;margin-left:5px;border-radius:999px;background:#285bd7;color:#fff;font-size:12px}.contact-form-grid{gap:12px}.contact-form-grid label{padding:0;background:none;border:0}.contact-form-grid input,.contact-form-grid select,.contact-form-grid textarea{border:1px solid #ced9ea;border-radius:12px;background:#fff;padding:10px 12px}.contact-history article{border:1px solid #dce5f0;border-radius:14px;padding:14px;background:#fff}.ct-empty-history{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:#667085}.ct-empty-history strong{color:#172033}.hidden{display:none!important}
@media(max-width:1200px){.ct-filter-panel{grid-template-columns:repeat(4,minmax(150px,1fr))}.ct-bulk-actions{grid-template-columns:1fr 1fr auto auto}}
@media(max-width:800px){.ct-toolbar-main{grid-template-columns:1fr}.ct-toolbar-bulk{align-items:stretch;flex-direction:column}.ct-bulk-actions{grid-template-columns:1fr}.ct-filter-panel{grid-template-columns:1fr 1fr}.ct-footer{grid-template-columns:1fr}.ct-pager{justify-self:start}.ct-columns-drawer{padding:20px}.ct-hero .card-head{align-items:flex-start}.ct-hero-actions{width:100%;justify-content:space-between}}
