.io-app{--ink:#15243a;--muted:#60718a;--navy:#14263f;--blue:#2468d4;--line:#e3e9f1;--bg:#f4f7fb;--teal:#15816f;color:var(--ink);max-width:none!important;margin:0 0 0 -20px;padding:26px clamp(16px,2.6vw,44px) 55px;background:var(--bg);min-height:calc(100vh - 100px);box-sizing:border-box;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.io-app *{box-sizing:border-box}.io-app .io-header{background:linear-gradient(110deg,#102238,#1d3d62);color:#fff;border-radius:18px;padding:29px 35px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.io-app .io-header h1{font-size:clamp(23px,2.4vw,33px);color:#fff;line-height:1.2;margin:7px 0 8px;font-weight:750}.io-app .io-header p{color:#c1cfde;margin:0}.io-eyebrow{font-size:11px;letter-spacing:2px;color:#97c4f5;font-weight:800}.io-pill,.io-tag{border-radius:30px;padding:7px 11px;background:#eaf0f8;color:#34516d;font-size:12px;font-weight:700;display:inline-block}.io-header .io-pill{background:rgba(255,255,255,.14);color:white;white-space:nowrap}.io-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.io-stat{background:white;border:1px solid var(--line);border-radius:14px;padding:19px 20px;box-shadow:0 5px 22px rgba(20,38,63,.035)}.io-stat span{display:block;color:var(--muted);font-size:13px;font-weight:600}.io-stat strong{display:block;color:var(--navy);font-size:32px;line-height:1.3;margin-top:9px}.io-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px;margin:0 0 18px;box-shadow:0 5px 20px rgba(21,36,58,.03);min-width:0}.io-panel h2{font-size:25px;line-height:1.3}.io-panel h3{margin:0 0 12px;color:var(--navy);font-size:18px;font-weight:750}.io-panel h4{margin:0 0 5px;font-size:15px}.io-muted{color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 14px}.io-notice{padding:13px 17px;border:1px solid #b9dacd;background:#edf9f3;border-radius:10px;margin-bottom:17px;color:#186c4d}.io-btn{border:1px solid transparent;border-radius:9px;padding:11px 16px;min-height:40px;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;gap:7px;white-space:normal;text-align:center;line-height:1.3;transition:transform .15s,box-shadow .15s}.io-btn:hover{transform:translateY(-1px);box-shadow:0 3px 10px rgba(0,0,0,.1)}.io-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}.io-primary{background:#235fbb;color:white!important}.io-secondary{background:#f5f8fc;color:#1d395d!important;border-color:#cfd9e8}.io-green{background:#128c70;color:white!important}.io-field{display:block;margin-bottom:15px}.io-field span{display:block;color:#344c68;font-size:12px;font-weight:700;margin-bottom:6px}.io-app .io-field input,.io-app .io-field select,.io-app .io-field textarea,.io-app select,.io-app input[type=file]{width:100%;max-width:100%;border:1px solid #ccd8e5;border-radius:9px;background:#fff;min-height:41px;padding:9px 12px;font-size:14px;box-shadow:none}.io-app textarea{resize:vertical}.io-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.io-two-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}.io-inline,.io-actions,.io-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.io-profile{display:flex;justify-content:space-between;align-items:center;gap:18px}.io-profile h2{margin:10px 0}.io-profile p{margin:5px 0;color:var(--muted)}.io-back{display:inline-block;margin:0 0 18px;text-decoration:none;font-weight:700;color:#245b9b}.io-check{display:flex;align-items:center;gap:8px;margin:10px 0 15px}.io-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:11px}.io-table{width:100%;border-collapse:collapse;min-width:800px;background:#fff}.io-table th{text-align:left;background:#f5f8fc;color:#506581;font-size:11px;letter-spacing:.5px;text-transform:uppercase;font-weight:800;padding:13px 12px}.io-table td{padding:14px 12px;border-top:1px solid #e9eef4;font-size:13px;color:#36485e;vertical-align:middle}.io-table tbody tr:hover{background:#f8fbff}.io-client{font-weight:800;text-decoration:none;color:#245d9c}.io-table td small{display:block;color:#8899aa;margin-top:3px}.io-status{display:inline-block;background:#edf3f9;border-radius:20px;padding:5px 9px;font-size:12px}.io-warning{color:#b45d21;font-weight:700}.io-mini-actions{display:flex;gap:6px}.io-mini-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:31px;border:1px solid #d6e1ed;border-radius:8px;text-decoration:none;color:#235c94;font-size:12px;font-weight:800}.io-mini-actions a:hover{background:#ecf4fe}.io-section-head{display:flex;align-items:start;justify-content:space-between;gap:15px}.io-toolbar{padding:11px 0 17px}.io-toolbar strong{margin-right:auto}.io-compose{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.io-wrap{white-space:pre-wrap;overflow-wrap:anywhere;max-width:550px}.io-app hr{border:0;border-top:1px solid var(--line);margin:22px 0}@media(max-width:1050px){.io-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.io-two{grid-template-columns:1fr}.io-profile{align-items:start;flex-direction:column}}@media(max-width:600px){.io-app{margin-left:-10px;padding:15px 12px 45px}.io-app .io-header{padding:22px;align-items:start;flex-direction:column;border-radius:12px}.io-panel{padding:16px}.io-stats{gap:9px}.io-stat{padding:13px}.io-stat strong{font-size:25px}.io-two-inner{grid-template-columns:1fr}.io-actions .io-btn{flex:1}.io-section-head{flex-direction:column}.io-toolbar .io-btn{font-size:11px}}

/* Quick client history: responsive, keyboard-accessible overlay */
.io-history-open{border:1px solid #cbd9ed;background:#eaf2ff;color:#1d568b;border-radius:9px;padding:8px 12px;cursor:pointer;font-size:12px;font-weight:750;white-space:nowrap}.io-history-open:hover,.io-history-open:focus-visible{background:#dceafe;border-color:#7da7e1}.io-history-lock{overflow:hidden}.io-history-modal[hidden]{display:none!important}.io-history-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px}.io-history-backdrop{position:absolute;inset:0;background:rgba(10,24,44,.65);backdrop-filter:blur(3px)}.io-history-dialog{position:relative;display:flex;flex-direction:column;width:min(760px,100%);max-height:min(85vh,850px);background:#fff;border-radius:18px;box-shadow:0 28px 85px rgba(5,20,38,.3);overflow:hidden;outline:0}.io-history-header{background:linear-gradient(115deg,#102238,#214773);color:white;padding:23px 26px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.io-history-kicker{font-size:10px;letter-spacing:1.6px;color:#b2d6f7;font-weight:800}.io-history-header h2{color:white!important;font-size:23px;margin:8px 0 5px;line-height:1.2;overflow-wrap:anywhere}.io-history-header p{margin:0;color:#d1dfed}.io-history-close{color:#fff;background:rgba(255,255,255,.12);border:0;border-radius:10px;width:38px;height:38px;font-size:28px;line-height:1;cursor:pointer}.io-history-close:hover{background:rgba(255,255,255,.24)}.io-history-content{overflow-y:auto;flex:1;min-height:100px;padding:20px 26px}.io-history-items{display:grid;gap:12px}.io-history-entry{border:1px solid #e2e9f3;border-left:3px solid #3275bf;border-radius:10px;padding:15px;background:#fafcff}.io-history-entry-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:9px;color:#1b3857}.io-history-entry-head strong{text-transform:capitalize;font-size:13px}.io-history-entry-head time{color:#6e8096;font-size:12px;white-space:nowrap}.io-history-entry-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#30455f;font-size:13px;line-height:1.65}.io-history-footer{border-top:1px solid #e1e9f2;padding:15px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#72839a;font-size:12px}.io-history-footer-actions{display:flex;gap:8px;flex-wrap:wrap}#io-history-status{color:#4b6079;font-size:14px;padding:20px 0}@media(max-width:600px){.io-history-modal{padding:0;align-items:flex-end}.io-history-dialog{width:100%;max-height:94dvh;border-radius:18px 18px 0 0}.io-history-header{padding:20px}.io-history-content{padding:16px}.io-history-footer{padding:14px 16px;align-items:stretch;flex-direction:column}.io-history-footer-actions .io-btn{flex:1}.io-history-entry-head{align-items:flex-start;flex-direction:column;gap:3px}}

/* 0.2.2 quick follow-up and CSV property references */
.io-next-panel{border-left:4px solid #2468d4}.io-next-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,.65fr) auto;gap:14px;align-items:end}.io-next-form .io-field{margin-bottom:0}.io-next-form .io-btn{margin-bottom:1px}.io-next-open{display:block;margin-top:7px;padding:4px 10px;border:1px solid #c9d9ef;border-radius:7px;background:#eaf2ff;color:#215f9f;font-weight:700;cursor:pointer;font-size:12px}.io-next-open:disabled{opacity:.4;cursor:not-allowed}.io-refs{display:flex;flex-wrap:wrap;gap:6px;max-width:260px}.io-ref-chip{display:inline-flex;align-items:center;padding:5px 9px;border-radius:7px;font-size:12px;font-weight:750;white-space:nowrap;text-decoration:none!important;background:#e7f1ff;color:#1c5890!important;border:1px solid #cee1f8}.io-ref-search{background:#f3f5f8;color:#5a6980!important;border-style:dashed}.io-ref-list{margin:16px 0;display:grid;gap:9px}.io-ref-form{display:grid;grid-template-columns:150px minmax(200px,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid #e1e8f1;border-radius:10px}.io-ref-form small{display:block;color:#74849b}.io-ref-form input{width:100%;min-width:0}.io-next-modal[hidden]{display:none!important}.io-next-modal{position:fixed;inset:0;z-index:100005;display:flex;align-items:center;justify-content:center;padding:20px}.io-next-backdrop{position:absolute;inset:0;background:rgba(10,24,44,.58)}.io-next-dialog{position:relative;width:min(500px,100%);padding:25px;border-radius:16px;background:white;box-shadow:0 24px 80px #0003}.io-next-dialog h3{font-size:20px;margin:0 0 6px}.io-next-close{border:0;background:#edf2f8;border-radius:9px;font-size:25px;width:35px;height:35px;cursor:pointer}.io-next-dialog .io-actions{margin-top:8px}.io-table{min-width:1060px}@media(max-width:800px){.io-next-form{grid-template-columns:1fr}.io-ref-form{grid-template-columns:1fr}.io-next-dialog{padding:20px}}

/* v0.2.3: referencias discretas y legibles en carteras densas */
.io-table .io-refs{gap:3px;max-width:174px;align-content:flex-start}
.io-table .io-ref-chip{font-size:10px;line-height:1.15;letter-spacing:0;padding:3px 5px;border-radius:5px;font-weight:650;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.io-table th:nth-child(5),.io-table td:nth-child(5){width:184px;max-width:184px;padding-left:7px;padding-right:7px}
.io-ref-chip:focus-visible{outline:2px solid #2367cf;outline-offset:2px}
@media(max-width:700px){.io-table .io-refs{max-width:150px}.io-table th:nth-child(5),.io-table td:nth-child(5){width:160px;max-width:160px}}
/* Version 0.2.4: dedicated daily agenda and separate owner/action notices. */
.io-agenda-panel{border-top:4px solid #2766b0}.io-agenda-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0}.io-agenda-tab{border:1px solid #d9e4f1;border-radius:10px;background:#f5f8fc;color:#294a70;cursor:pointer;padding:10px 14px;font-weight:750;font-size:13px}.io-agenda-tab span{margin-left:6px;border-radius:8px;background:#e3ebf6;padding:3px 7px}.io-agenda-tab[aria-pressed="true"]{background:#1b426c;color:#fff;border-color:#1b426c}.io-agenda-tab[aria-pressed="true"] span{background:#345d8a;color:#fff}.io-agenda-group[hidden]{display:none!important}.io-agenda-list{max-height:370px;overflow-y:auto;display:grid;gap:7px}.io-agenda-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5ecf4;border-radius:10px;padding:9px 13px;background:#fcfdff}.io-agenda-person{min-width:0}.io-agenda-person a{font-size:13px;font-weight:750;color:#225987;text-decoration:none}.io-agenda-person small{display:block;font-size:12px;color:#6a7e92;padding-top:4px}.io-agenda-item .io-next-open{display:inline-flex;margin:0;white-space:nowrap}.io-action-ok{color:#216b58;font-weight:700}.io-table .io-warning{display:block;font-size:12px}@media(max-width:600px){.io-agenda-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.io-agenda-item{align-items:flex-start}.io-agenda-item .io-next-open{font-size:11px}}

/* 0.2.5: fast portfolio and exact-reference search */
.io-search-panel{border-top:4px solid #1e609c}.io-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.io-search-form{min-width:0}.io-search-form>label{display:block;font-size:12px;color:#35506d;font-weight:750;margin-bottom:9px}.io-search-line{display:flex;gap:8px;align-items:stretch}.io-app .io-search-line input{border:1px solid #cbd8e7;border-radius:9px;padding:9px 12px;min-height:42px;min-width:0;width:100%;flex:1;font-size:14px}.io-search-clear{margin-top:15px}.io-search-result{background:#eaf3fc;border:1px solid #cbdff6;border-radius:12px;color:#24486b;padding:13px 17px;margin-bottom:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.io-search-result strong{font-size:17px}.io-search-result span{font-size:12px}.io-empty{text-align:center;padding:28px!important;color:#60718a!important}@media(max-width:800px){.io-search-grid{grid-template-columns:1fr}.io-search-line{flex-wrap:wrap}.io-search-line button{flex:1}}
.io-permission{display:inline-flex;align-items:center;gap:8px;min-height:36px;cursor:pointer;white-space:nowrap}.io-permission input,.io-row-select,#io-select-all{min-width:20px!important;min-height:20px!important;cursor:pointer}.io-permission input:disabled{cursor:not-allowed}.io-pagination{display:flex;gap:10px;margin:12px 0}.io-pagination a{min-height:36px;display:inline-flex;align-items:center}

/* v0.3.5: editable commercial state, criteria overview */
.io-table{min-width:1320px}.io-pipeline-select{width:175px;max-width:175px;min-height:36px;padding:6px 7px;border:1px solid #cad8e6;border-radius:9px;background:#fff;color:#243e59;font-size:12px;font-weight:650;cursor:pointer}.io-pipeline-select:focus-visible{outline:2px solid #2766b0;outline-offset:1px}.io-pipeline-feedback{display:block;font-size:11px;color:#496b83;margin-top:3px;max-width:180px}.io-criteria-mini{display:inline-block;max-width:170px;overflow-wrap:anywhere;font-size:12px;line-height:1.45;color:#3a4e64}.io-detail-pipeline{margin-top:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.io-table th:nth-child(5),.io-table td:nth-child(5){width:auto;max-width:none;padding-left:12px;padding-right:12px}

/* 0.4.1: responsable visible y compacto en cartera */
.io-table .io-commercial-name{display:inline-block;max-width:160px;min-width:85px;overflow-wrap:anywhere;font-size:12px;font-weight:750;line-height:1.35;color:#24496d;background:#edf4fb;border:1px solid #d9e6f4;padding:6px 9px;border-radius:8px}
.io-table .io-commercial-unassigned{background:#fff1e8;color:#9c451f;border-color:#f2d3c0}

/* Inmo Olaya Premium System · 0.4.3 */
:root{--io-ink:#102942;--io-navy:#08355d;--io-blue:#226eac;--io-soft-blue:#edf5fc;--io-line:#e1e8f1;--io-bg:#f3f6fa;--io-muted:#657b92;--io-green:#15765e;--io-radius:14px}
body.toplevel_page_io-crm,body[class*="io-crm"]{background:var(--io-bg)}
.io-app{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--io-ink);max-width:none;padding:22px 25px 65px;margin:0 auto;box-sizing:border-box}
.io-app *,.io-admin-page *{box-sizing:border-box}
.io-header{display:grid;grid-template-columns:215px minmax(0,1fr) auto;gap:30px;align-items:center;background:linear-gradient(115deg,#082b4c 0%,#104d79 70%,#23699d 100%);padding:28px 34px;border-radius:20px;box-shadow:0 16px 36px #143f6724;min-height:158px;position:relative;overflow:hidden}
.io-header:after{content:"";position:absolute;border:1px solid #ffffff17;border-radius:50%;width:360px;height:360px;right:-145px;top:-210px;pointer-events:none}
.io-brand{display:flex;flex-direction:column;gap:8px;align-items:flex-start;z-index:1}.io-brand-logo{background:#fff;object-fit:contain;object-position:center;border-radius:11px;padding:10px 15px;width:184px;height:78px;box-shadow:0 6px 15px #041f3430}.io-brand-caption{letter-spacing:2.1px;font-size:9px;color:#d6e8f5;font-weight:800;padding-left:2px}
.io-header-copy{position:relative;z-index:1}.io-header-copy .io-eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#b4d5ed}.io-header-copy h1{font-size:clamp(23px,2.4vw,36px)!important;font-weight:780!important;letter-spacing:-.65px;margin:8px 0!important;color:#fff!important;line-height:1.12}.io-header-copy p{font-size:13px;color:#deedf7;max-width:600px;line-height:1.5;margin:0}
.io-header-tools{align-self:start;display:flex;flex-direction:column;gap:12px;align-items:flex-end;z-index:1}.io-pill{background:#ffffff19;border:1px solid #ffffff40;color:#fff;font-size:11px;padding:7px 12px;border-radius:30px}.io-head-link{font-size:12px;font-weight:700;color:#fff!important;text-decoration:none;border-bottom:1px solid #ffffff80;padding:4px}
.io-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;margin:19px 0!important}.io-stat{border:1px solid var(--io-line)!important;background:#fff!important;border-radius:15px!important;box-shadow:0 3px 12px #1439560a!important;padding:19px 22px!important;position:relative;overflow:hidden}.io-stat:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:#2b7db8}.io-stat:nth-child(2):before{background:#16886b}.io-stat:nth-child(3):before{background:#df9241}.io-stat:nth-child(4):before{background:#d25c56}.io-stat span{font-size:11px!important;font-weight:720!important;color:#667c92!important;letter-spacing:.25px}.io-stat strong{font-size:clamp(26px,2.5vw,39px)!important;color:#0d3457!important;line-height:1.3!important;font-variant-numeric:tabular-nums}
.io-panel{background:#fff!important;border:1px solid var(--io-line)!important;box-shadow:0 3px 15px #153f6710!important;border-radius:16px!important;padding:22px 24px!important;margin-bottom:17px!important}
.io-section-head{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.io-section-head h3,.io-panel h3{color:var(--io-ink)!important;font-size:17px!important;letter-spacing:-.25px;font-weight:760!important;margin-top:0}.io-muted{color:var(--io-muted)!important;line-height:1.5}.io-tag{background:#eef5fb!important;color:#225b89!important;border:1px solid #dce8f4!important;padding:6px 11px!important;border-radius:99px!important;font-size:11px!important}
.io-app .io-btn,.io-app button.io-btn{border-radius:10px!important;min-height:39px!important;font-size:12px!important;font-weight:750!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px!important;transition:background .12s ease,box-shadow .12s ease,transform .12s ease;cursor:pointer;line-height:1.2;text-decoration:none!important}.io-app .io-btn:active,.io-app button:active{transform:translateY(1px)}.io-app .io-btn:focus-visible,.io-app a:focus-visible,.io-app input:focus-visible,.io-app select:focus-visible,.io-admin-page :focus-visible{outline:3px solid #5da5db!important;outline-offset:2px}.io-app .io-primary{background:var(--io-blue)!important;border:1px solid var(--io-blue)!important;color:#fff!important}.io-app .io-primary:hover{background:#0e527f!important;border-color:#0e527f!important;box-shadow:0 4px 10px #225b8930!important}.io-app .io-secondary{background:#f2f7fb!important;border:1px solid #d4e2ee!important;color:#224f77!important}.io-app .io-secondary:hover{background:#e3f0fa!important}.io-app .io-green{background:#15755e!important;border:1px solid #15755e!important;color:#fff!important}.io-app .io-green:hover{background:#0c624f!important}
.io-search-panel,.io-agenda-panel,.io-next-panel{border-top:1px solid var(--io-line)!important;border-left:1px solid var(--io-line)!important}.io-search-grid{gap:18px}.io-search-form>label{font-size:12px!important;color:#344f66!important}.io-app .io-search-line input,.io-app .io-field input,.io-app .io-field select,.io-app textarea{background:#fff!important;border:1px solid #cfdae6!important;box-shadow:none!important;border-radius:10px!important;min-height:41px!important;font-size:13px!important;color:#213d58!important}.io-app .io-search-line input:focus{border-color:#397fb5!important}
.io-agenda-tabs{gap:8px}.io-agenda-tab{background:#f6f9fc!important;color:#355b7b!important;border:1px solid #dce6ef!important;border-radius:10px!important;padding:11px 14px!important}.io-agenda-tab[aria-pressed="true"]{background:#135583!important;color:#fff!important;border-color:#135583!important;box-shadow:0 3px 12px #20649320!important}.io-agenda-item{padding:12px 16px!important;border-radius:10px!important}.io-agenda-person a{font-size:13px!important}.io-agenda-person small{line-height:1.45}
.io-table-scroll{width:100%;overflow:auto;scrollbar-color:#b4c9db transparent;border:1px solid var(--io-line);border-radius:12px}.io-table{border-collapse:separate!important;border-spacing:0!important;min-width:1510px!important;margin:0!important;background:#fff}.io-table thead th{position:sticky;top:0;z-index:2;white-space:nowrap;background:#f1f5fa!important;color:#49657d!important;text-transform:uppercase;letter-spacing:.5px;font-size:10px!important;font-weight:850!important;border-bottom:1px solid #dfe8f1!important;padding:13px 11px!important}.io-table td{padding:12px 11px!important;font-size:12px!important;line-height:1.45;vertical-align:middle;border-bottom:1px solid #eef2f7!important}.io-table tbody tr:hover td{background:#f7fbff!important}.io-table tbody tr:last-child td{border-bottom:0!important}.io-table .io-commercial-name{background:#ecf5fd;border-color:#d8e8f4;color:#1e5a89;font-size:11px;padding:6px 8px;border-radius:8px}.io-table .io-commercial-unassigned{background:#fff3e9;color:#a35a2d;border-color:#f5dcc7}.io-table .io-refs{max-width:170px!important}.io-table .io-ref-chip{border-radius:6px;font-size:10px!important;padding:4px 6px!important}
.io-table .io-pipeline-select{width:177px;max-width:177px;border-radius:8px!important;font-size:11px!important;min-height:36px;background:#fff!important}.io-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#f5f8fc!important;border:1px solid #e5edf4!important;border-radius:11px!important;padding:11px 14px!important;margin-bottom:15px!important}.io-toolbar strong{margin-right:6px;color:#1c4769}.io-history-open,.io-next-open{border-radius:8px!important;min-height:33px!important;color:#205781!important;background:#ecf5fd!important;border-color:#d1e2f3!important}.io-history-open:hover,.io-next-open:hover{background:#daeefa!important}.io-profile{border-top:3px solid #2879b3!important}.io-back{display:inline-flex;margin:10px 0 19px;text-decoration:none!important;font-weight:750;color:#245d87!important}
.io-admin-page{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:1260px;margin:22px 26px 60px 0;color:#18344d}.io-admin-head{background:linear-gradient(118deg,#073757,#195f92);padding:24px 30px;border-radius:16px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.io-admin-head h1{color:#fff!important;font-size:29px!important;font-weight:780!important;margin:6px 0}.io-admin-head p{color:#d9eaf4;margin:7px 0 0}.io-admin-kicker{font-size:10px;letter-spacing:2px;color:#a9d1ed;font-weight:850}.io-admin-head .button{color:#124c77;border-radius:9px;padding:4px 14px;font-weight:750}.io-admin-card{background:white;border:1px solid #e0e9f1;border-radius:15px;padding:23px 26px;margin:18px 0;box-shadow:0 4px 15px #133c5f10}.io-admin-card h2{margin-top:0;font-size:19px}.io-admin-card p{color:#63778b}.io-count{padding:7px 12px;border-radius:99px;background:#e8f4fc;color:#22608d;font-size:11px;font-weight:800;white-space:nowrap}.io-team-table-wrap{overflow:auto;border:1px solid #e0e8f2;border-radius:11px}.io-team-table{border:0!important}.io-team-table th{background:#f3f7fb!important;color:#58718a!important;font-size:11px;text-transform:uppercase;letter-spacing:.5px}.io-team-table td,.io-team-table th{padding:13px!important}.io-team-table input[type=checkbox]{width:19px;height:19px}.io-team-existing{color:#24725c;font-weight:750}.io-team-pending{color:#a36a22;font-weight:750}.io-team-notify{display:flex;gap:9px;align-items:center;margin:20px 0;font-weight:650}.io-team-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.io-team-footer p{font-size:12px}.io-admin-page .button-primary{background:#216aa1!important;border-color:#216aa1!important;border-radius:8px!important;padding:5px 17px!important;min-height:37px!important;font-weight:700}
@media (max-width:1100px){.io-header{grid-template-columns:175px minmax(0,1fr);gap:18px}.io-brand-logo{width:160px}.io-header-tools{grid-column:2;flex-direction:row;align-items:center}.io-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:782px){.io-app{padding:14px 9px 50px!important}.io-header{grid-template-columns:1fr;padding:20px!important;gap:13px;border-radius:15px}.io-brand-logo{width:145px;height:66px}.io-header-tools{grid-column:auto;justify-content:flex-start;align-items:center;flex-wrap:wrap}.io-header-copy h1{font-size:25px!important}.io-panel{padding:17px!important}.io-stats{gap:10px!important}.io-stat{padding:16px!important}.io-stat strong{font-size:27px!important}.io-section-head{flex-direction:column;gap:8px}.io-admin-page{margin:15px 10px 40px 0}.io-admin-head{flex-direction:column;align-items:flex-start;padding:22px}.io-team-footer{flex-direction:column;align-items:flex-start}}
@media (prefers-reduced-motion:reduce){.io-app .io-btn,.io-app button{transition:none!important}}

/* CRM 0.4.4 - aligned, coloured and compact filter controls */
.io-filter-panel{border-top:3px solid #2879b3!important}
.io-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(155px,1fr));gap:12px;align-items:end}
.io-filter-grid label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;letter-spacing:.15px;color:#285477}
.io-filter-grid select{width:100%;min-height:38px;max-width:100%;border-radius:9px;border:1px solid #c8dceb;background:#f5f9fe;color:#1a4d75;padding:6px 30px 6px 10px;font-size:12px;box-shadow:none}
.io-filter-grid select:focus{background:#fff;border-color:#307bb8}
.io-filter-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap;grid-column:1/-1;margin-top:2px}
.io-table .io-pipeline-select{width:145px!important;max-width:145px!important;min-height:31px!important;height:31px!important;font-size:10px!important;font-weight:700!important;line-height:1.1!important;background:#eaf4ff!important;color:#15527e!important;border:1px solid #c7dfef!important;padding:3px 20px 3px 7px!important}
.io-table .io-pipeline-select[data-original="Contactado"],.io-table .io-pipeline-select[data-original="Visita realizada"],.io-table .io-pipeline-select[data-original="Selección enviada"]{background:#e2f7ee!important;border-color:#b9e4d1!important;color:#176348!important}
.io-table .io-pipeline-select[data-original="No contesta"],.io-table .io-pipeline-select[data-original="Seguimiento pendiente"]{background:#fff4e2!important;border-color:#f2d7a6!important;color:#80520b!important}
.io-table .io-pipeline-select[data-original="Descartado"],.io-table .io-pipeline-select[data-original="Teléfono incorrecto"]{background:#ffebeb!important;border-color:#f1caca!important;color:#942f35!important}
.io-app .io-danger{background:#fff0f1!important;border:1px solid #edb6be!important;color:#a82d3c!important}
.io-app .io-danger:hover:not(:disabled){background:#ffe0e3!important}
.io-app .io-danger:disabled{opacity:.42;cursor:not-allowed!important}
.io-table td{padding:10px 9px!important}.io-table thead th{padding:11px 9px!important}.io-table .io-ref-chip{padding:3px 5px!important}
@media(max-width:1250px){.io-filter-grid{grid-template-columns:repeat(3,minmax(155px,1fr))}}
@media(max-width:780px){.io-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.io-filter-grid{grid-template-columns:1fr}}

/* v0.4.8 — chronological portfolio */
.io-table th .io-sort-date{display:inline-flex;align-items:center;gap:5px;color:#edf7ff;text-decoration:none;white-space:nowrap;font-weight:800}.io-table th .io-sort-date:hover,.io-table th .io-sort-date:focus{color:#fff;text-decoration:underline}.io-filter-grid label:has(select[name=io_date_order]) select{border-color:#87b4dc;background:#e9f4ff;font-weight:700;color:#194d77}

/* v0.5.1: mobile-first cards; prevent horizontally hidden controls */
.io-app input[type=checkbox], .io-app input[type=radio]{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;flex:0 0 21px;accent-color:#196b9e;cursor:pointer;appearance:auto!important;-webkit-appearance:checkbox!important;margin:0!important;}
.io-app .io-permission{display:inline-flex!important;align-items:center!important;justify-content:flex-start;min-height:44px!important;padding:8px 10px;border:1px solid #c9dff1;border-radius:10px;background:#eef7ff;gap:10px;white-space:normal!important;cursor:pointer;touch-action:manipulation;}
.io-app .io-permission:has(input:checked){background:#e2f6eb;border-color:#99d4b5;color:#155d3c;}
.io-app .io-permission input:disabled{cursor:not-allowed;}
.io-app .io-table td input[type=checkbox],.io-app .io-table th input[type=checkbox]{touch-action:manipulation;}
.io-detail-history-items{display:flex;flex-direction:column;gap:10px;margin-top:12px;max-width:100%;}
.io-detail-history-entry{border:1px solid #dde8f3;border-left:4px solid #2d7cb3;border-radius:11px;background:#f8fbff;padding:14px;min-width:0;overflow-wrap:anywhere;}
.io-detail-history-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px;flex-wrap:wrap;}
.io-detail-history-meta strong{font-size:13px;color:#1d5075;text-transform:capitalize;}
.io-detail-history-meta time{font-size:11px;color:#637b91;}
.io-detail-history-entry .io-wrap{max-width:none!important;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;}
.io-detail-history-jump{white-space:nowrap;}
@media(max-width:782px){
 .io-app{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:12px!important;overflow-x:clip;}
 .io-app .io-panel,.io-app .io-profile,.io-app .io-compose{min-width:0!important;max-width:100%!important;}
 .io-app .io-toolbar{align-items:stretch!important;}
 .io-app .io-toolbar .io-btn{min-height:44px!important;}
 .io-app .io-table-scroll.io-mobile-cards{overflow:visible!important;border:0!important;border-radius:0!important;max-width:100%!important;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;background:transparent!important;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody{display:flex!important;flex-direction:column;gap:13px;width:100%!important;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px;padding:13px 14px;border:1px solid #dbe7f1;border-radius:13px;background:#fff;box-shadow:0 5px 16px #173d6412;min-width:0!important;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td{display:flex!important;min-width:0!important;max-width:100%!important;width:auto!important;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:8px 0!important;border:0!important;font-size:12px!important;overflow-wrap:anywhere;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td::before{content:attr(data-io-label);display:block;font-size:10px;line-height:1.3;text-transform:uppercase;letter-spacing:.4px;color:#6b8094;font-weight:800;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Cliente"],
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Historial"],
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Contacto"],
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Referencias inmueble"],
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Próxima acción"]{grid-column:1 / -1;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Seleccionar"]{grid-column:1 / -1;flex-direction:row!important;align-items:center;gap:10px;background:#f5f9fd;padding:10px!important;border-radius:8px;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Seleccionar"]::before{content:"Seleccionar cliente";order:2;margin:0;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody td[data-io-label="Permiso"]{background:#f5faff;border-radius:9px;padding:9px!important;}
 .io-app .io-table-scroll.io-mobile-cards .io-client{font-size:16px!important;line-height:1.35;}
 .io-app .io-table-scroll.io-mobile-cards .io-pipeline-select{width:100%!important;max-width:100%!important;min-height:42px!important;font-size:12px!important;}
 .io-app .io-table-scroll.io-mobile-cards .io-refs{max-width:100%!important;flex-wrap:wrap;}
 .io-app .io-table-scroll.io-mobile-cards .io-next-open,.io-app .io-table-scroll.io-mobile-cards .io-history-open,.io-app .io-table-scroll.io-mobile-cards .io-mini-actions a{min-height:44px!important;min-width:44px!important;}
 .io-app .io-table-scroll.io-mobile-cards .io-mini-actions{flex-wrap:wrap;}
 .io-app .io-table-scroll.io-mobile-cards .io-permission{width:100%;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody tr.io-empty-row{display:block!important;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody tr.io-empty-row td{display:block!important;}
 .io-app .io-table-scroll.io-mobile-cards table.io-table tbody tr.io-empty-row td::before{display:none;}
 .io-app .io-next-form,.io-app .io-two-inner{grid-template-columns:1fr!important;}
 .io-app .io-detail-history-meta{flex-direction:column;align-items:flex-start;gap:3px;}
 .io-app .io-history-dialog{max-width:100vw!important;}
}

/* v0.6.1: independent selection and bulk editing of contact permission */
.io-app .io-bulk-consent-toolbar{margin-top:0!important;margin-bottom:15px!important;align-items:center;gap:10px!important}
.io-app .io-bulk-consent-toolbar strong{white-space:nowrap}
.io-app .io-consent-evidence-label{width:100%;font-size:12px;font-weight:650;color:#284c68;display:flex;flex-direction:column;gap:6px}
.io-app #io-consent-evidence{width:100%;max-width:920px;min-height:55px;background:#fff;border:1px solid #c9d8e8;border-radius:9px;padding:10px;font:inherit;resize:vertical}
.io-app .io-consent-certify{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;cursor:pointer}
.io-app .io-bulk-consent-toolbar .io-muted{flex-basis:100%;font-size:12px}
.io-app .io-consent-all{display:inline-flex;vertical-align:middle;margin-left:7px;cursor:pointer}
.io-app .io-consent-cell{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.io-app .io-consent-pick{display:inline-flex;align-items:center;gap:5px;border:1px dashed #a8bed3;border-radius:9px;padding:8px 5px;cursor:pointer;background:#fff;min-height:43px;font-size:11px;font-weight:650;color:#395d77}
.io-app .io-consent-pick:has(input:checked){border-color:#276a9b;background:#e7f4fd;color:#124e7d}
.io-app .io-bulk-consent-toolbar button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:782px){.io-app .io-consent-cell{width:100%;justify-content:space-between}.io-app .io-consent-pick{min-height:44px;flex:0 0 auto}.io-app .io-consent-cell .io-permission{flex:1}.io-app .io-consent-evidence-label{width:100%}.io-app .io-bulk-consent-toolbar .io-btn{flex:1 1 190px}}

/* v0.6.3: Open the genuine Superchat inbox beside ChatNexo, in blue. */
.io-app .io-superchat-launch{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;padding:11px 15px;border-radius:10px;border:1px solid #9dcaf9;background:#e3f1ff;color:#124c85!important;font-weight:850;font-size:13px;line-height:1.25;text-align:center;text-decoration:none!important;box-shadow:0 4px 13px #041e3c24;position:relative;z-index:1;}
.io-app .io-superchat-launch:hover{background:#cde6ff;color:#0c3d70!important;}
.io-app .io-superchat-hint{font-size:11px;color:#d6eaff;text-align:right;line-height:1.3;margin-top:-6px;}
.io-app .io-superchat-detail-link{border-color:#a7cdec!important;color:#155b95!important;background:#e5f2ff!important;}
.io-app .io-superchat-detail-link:hover{background:#d7eaff!important;}
@media(max-width:1100px){.io-app .io-superchat-hint{text-align:left;}}
@media(max-width:782px){.io-app .io-superchat-launch{width:100%;}.io-app .io-superchat-hint{margin-top:-8px;}}
