:root{--navy:#10233b;--navy-dark:#0b1930;--accent:#0f778d;--accent-dark:#0c5f73;--mint:#eaf7f9;--text:#1b2b42;--muted:#65738a;--line:#e6ecf2;--bg:#f5f7fa;--white:#fff;--danger:#a43131;--success:#166747;--radius:15px;--shadow:0 5px 24px rgba(18,36,60,.045)}
*{box-sizing:border-box}html{font-size:15px}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.48}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;padding:12px 13px;border:1px solid #d7e1e9;border-radius:9px;background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(15,119,141,.1)}textarea{resize:vertical}label{display:block;font-size:.9rem;font-weight:600}label input,label textarea,label select{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.03em;margin-bottom:8px}h2{font-size:1.13rem;letter-spacing:-.01em;margin-bottom:4px}h3{font-size:1rem}.muted,.field-help{color:var(--muted);font-size:.84rem}.field-help{display:block;font-weight:400;margin-top:6px}.required{color:#ce4242}
.sidebar{position:fixed;top:0;bottom:0;left:0;width:246px;background:var(--navy-dark);color:#d8e6f1;padding:28px 16px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:#fff;padding:9px 13px 32px;text-decoration:none!important}.brand strong{display:block;font-weight:850;letter-spacing:.12em;font-size:1.22rem;line-height:1.1}.brand small{display:block;letter-spacing:.07em;font-size:.59rem;opacity:.65;margin-top:5px}.brand-mark{width:32px;height:32px;border-radius:8px;background:linear-gradient(140deg,#17aac2,#0b6a82);display:flex;align-items:flex-end;gap:3px;padding:8px;flex-shrink:0;transform:skew(-5deg)}.brand-mark b{background:#fff;width:5px;border-radius:1px;transform:skew(8deg)}.brand-mark b:nth-child(1){height:7px;opacity:.65}.brand-mark b:nth-child(2){height:12px;opacity:.85}.brand-mark b:nth-child(3){height:17px}.side-menu{display:grid;gap:5px}.side-menu a{color:#bacbdc;padding:12px 15px;display:flex;align-items:center;gap:13px;border-radius:9px;font-weight:500}.side-menu a:hover,.side-menu .active{background:#1b3451;color:#fff;text-decoration:none}.side-menu .active{border-left:3px solid #24b3cc}.nav-icon{font-size:1.25rem;width:23px;text-align:center;line-height:1}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding-top:19px}.signed-in{display:flex;gap:11px;align-items:center}.signed-in strong{display:block;font-size:.89rem;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.signed-in small{display:block;color:#9bb1c5;font-size:.75rem}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:100%;background:#245372;color:#fff;font-weight:750}.logout{border:0;background:transparent;color:#c5d4e3;font-size:.85rem;margin-top:19px;padding:5px}.logout:hover{color:white}.main-wrap{margin-left:246px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 39px}.breadcrumb{color:#8793a3;font-size:.86rem}.breadcrumb strong{color:var(--text)}.user-chip{border:1px solid var(--line);padding:8px 13px;color:var(--muted);font-size:.8rem;border-radius:30px}.menu-toggle{display:none;border:0;background:transparent;color:var(--text);font-size:1.5rem}.content{max-width:1650px;width:100%;margin:0 auto;padding:32px 39px 60px;flex:1}.footer{padding:18px 39px;border-top:1px solid var(--line);font-size:.75rem;color:#8b98aa}.heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.heading p{color:var(--muted);margin-bottom:0}.kicker{display:inline-block;font-size:.68rem;letter-spacing:.13em;font-weight:800;color:var(--accent);margin-bottom:8px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:23px}.stat-card{border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);border-radius:var(--radius);padding:23px 25px;min-height:145px}.stat-card span{color:var(--muted);font-weight:600;font-size:.83rem}.stat-card strong{display:block;font-size:2.45rem;line-height:1.25;letter-spacing:-.04em;margin:10px 0 4px;color:var(--navy)}.stat-card small{color:#8392a3;font-size:.79rem}.stat-card .stat-date{font-size:1.12rem;letter-spacing:0;margin-top:18px}.stats-grid.slim .stat-card{min-height:120px}.panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);margin-bottom:21px;overflow:hidden}.panel.padded{padding:24px}.panel-heading{padding:21px 24px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-heading p{color:var(--muted);font-size:.83rem;margin-bottom:0}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:19px 23px 23px}.quick-card{border:1px solid #e0e8ef;border-radius:11px;padding:20px;color:var(--text);transition:border-color .15s,transform .15s}.quick-card:hover{border-color:var(--accent);transform:translateY(-2px);text-decoration:none}.quick-symbol{display:grid;place-items:center;width:39px;height:39px;background:var(--mint);color:var(--accent);font-size:1.5rem;border-radius:9px;margin-bottom:15px}.quick-card b,.quick-card small{display:block}.quick-card small{font-size:.8rem;color:var(--muted);margin-top:5px}.table-scroll{width:100%;overflow-x:auto}.data-table{border-collapse:collapse;width:100%;text-align:left;font-size:.85rem}.data-table th{font-size:.73rem;text-transform:uppercase;letter-spacing:.05em;font-weight:750;color:#728096;background:#f9fbfd;white-space:nowrap;border-bottom:1px solid var(--line);padding:14px 17px}.data-table td{border-bottom:1px solid var(--line);padding:16px 17px;vertical-align:top}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfdfd}.data-table strong{font-weight:680}.data-table small{display:block;margin-top:5px}.no-wrap{white-space:nowrap}.agreement{min-width:220px;max-width:490px;white-space:normal;overflow-wrap:anywhere}
.interactions-table{min-width:1240px}.interactions-table .col-date{min-width:150px}.interactions-table .col-client{min-width:220px}.interactions-table .col-type{min-width:140px}.interactions-table .col-status{min-width:190px}.interactions-table .col-attended{min-width:170px}.interactions-table .col-position{min-width:130px}.interactions-table .col-agreement{min-width:320px;max-width:560px}.interactions-table .col-agent{min-width:140px}.interactions-table .col-admin{min-width:110px}.tag{background:#ecf5f7;color:#146a7e;padding:5px 9px;border-radius:7px;font-size:.76rem;white-space:nowrap;display:inline-block}.count-pill{background:#ecf2f7;color:#52677c;padding:4px 10px;border-radius:9px;font-weight:750}.empty{text-align:center;padding:38px!important;color:var(--muted)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.toolbar-right{display:flex;gap:10px}.search-form{display:flex;gap:9px;flex:1;max-width:590px}.search-form input{margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none!important;border:1px solid #d5e1e8;background:#fff;color:var(--text);border-radius:9px;padding:11px 16px;font-weight:700;font-size:.87rem;white-space:nowrap;min-height:44px}.btn:hover{border-color:#9cb6c4;background:#fafdff}.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn.primary:hover{background:var(--accent-dark)}.btn.block{width:100%}.btn.small{min-height:35px;padding:7px 12px;font-size:.8rem}.btn.export{color:var(--accent);border-color:#a9d1da}.form-panel{max-width:960px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:33px;box-shadow:var(--shadow)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 20px}.form-grid .span2{grid-column:span 2}.form-grid.compact{gap:15px 18px}.form-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;border-top:1px solid var(--line);padding-top:22px;margin-top:3px}.hint{border-radius:9px;padding:13px 15px;background:#f0f6f9;color:#4f6476;font-size:.82rem}.autocomplete{position:relative}.autocomplete-list{position:absolute;top:100%;left:0;right:0;z-index:15;background:white;border:1px solid #d5e1e8;box-shadow:0 12px 26px rgba(15,29,46,.13);border-radius:9px;margin-top:4px;max-height:280px;overflow:auto}.autocomplete-list button{display:block;text-align:left;width:100%;padding:13px;border:0;border-bottom:1px solid var(--line);background:white}.autocomplete-list button:hover,.autocomplete-list button:focus{background:#ebf8fa}.autocomplete-list small{color:var(--muted);display:block}.autocomplete-list .no-match{padding:15px;color:var(--muted);font-size:.82rem}.info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.info-grid small,.info-grid strong{display:block}.info-grid small{color:var(--muted);font-size:.76rem;margin-bottom:5px}.info-grid strong{font-size:.93rem;overflow-wrap:anywhere}.client-notes{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}.pages{display:flex;align-items:center;justify-content:space-between;padding:0 3px;color:var(--muted);font-size:.85rem}.report-filters{padding:20px 24px}.permissions{border:1px solid var(--line);border-radius:11px;padding:20px}.permissions h3{margin-bottom:14px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.checks label{display:flex;align-items:center;gap:9px;font-weight:500;font-size:.86rem}.checks input{width:17px;height:17px;margin:0;accent-color:var(--accent);flex-shrink:0}.center{text-align:center}.state{border-radius:20px;padding:5px 9px;font-size:.76rem;font-weight:650}.state.active{color:var(--success);background:#e6f5ec}.state.off{color:var(--danger);background:#fbe9e9}.alert{padding:13px 17px;border-radius:9px;font-weight:600;font-size:.86rem;margin-bottom:20px}.alert.success{border:1px solid #c3e4d5;background:#eaf8f0;color:var(--success)}.alert.error{border:1px solid #f0c9c9;background:#fdf0f0;color:var(--danger)}.login-page{background:linear-gradient(130deg,#0c1d34,#1a3b57);min-height:100vh}.login-shell{width:100%;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:min(100%,455px);background:#fff;border-radius:20px;padding:40px;box-shadow:0 20px 70px rgba(0,0,0,.22)}.login-brand{display:flex;align-items:center;gap:11px;color:var(--navy);font-size:1.27rem;font-weight:800;letter-spacing:.09em;margin-bottom:33px}.login-card h1{font-size:2rem}.login-card p{color:var(--muted);margin-bottom:25px}.form-stack{display:grid;gap:19px}.login-hint{border-top:1px solid var(--line);padding-top:20px;margin-top:25px;font-size:.77rem;color:var(--muted);text-align:center}
@media(max-width:1150px){.sidebar{width:220px}.main-wrap{margin-left:220px}.content{padding:27px 26px 46px}.topbar{padding:0 26px}.data-table th,.data-table td{padding:13px}.info-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:260px}.sidebar.open{transform:translateX(0)}.main-wrap{margin-left:0}.menu-toggle{display:block}.topbar{height:66px;justify-content:flex-start;gap:12px}.user-chip{margin-left:auto}.content{padding:21px 16px 40px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:17px;min-height:120px}.stat-card strong{font-size:2rem}.stats-grid.slim{grid-template-columns:1fr 1fr}.stats-grid.slim .stat-card:last-child{grid-column:span 2}.quick-grid{grid-template-columns:1fr}.form-panel{padding:20px}.toolbar{align-items:stretch;flex-wrap:wrap}.search-form{max-width:none;width:100%}.report-filters{padding:18px}.checks{grid-template-columns:1fr}}
@media(max-width:520px){h1{font-size:1.52rem}.breadcrumb{font-size:.78rem}.user-chip{display:none}.form-grid{grid-template-columns:1fr}.form-grid .span2{grid-column:span 1}.stats-grid{grid-template-columns:1fr 1fr}.stat-card span{font-size:.75rem}.stat-card strong{font-size:1.7rem}.form-actions{flex-wrap:wrap}.form-actions .btn{flex-grow:1}.toolbar-right{flex-wrap:wrap}.info-grid{grid-template-columns:1fr 1fr}.login-card{padding:27px}.pages{gap:10px}}

.import-heading{margin-top:25px}

/* CXC v1.1 - Acciones administrativas */
.btn.danger{background:var(--danger);color:#fff;border-color:var(--danger)}
.btn.danger:hover{background:#812626;border-color:#812626}
.btn.danger-outline{color:var(--danger);border-color:#e3bebe}
.btn.danger-outline:hover{background:#fff3f3;border-color:var(--danger)}
.action-delete{font-weight:700;color:var(--danger);white-space:nowrap}
.audit-details{min-width:220px;max-width:530px;overflow-wrap:anywhere}


/* CXC v1.2 — catálogo de estatus y semáforo legible */
/* CXC v1.3 — mejora visual de reportes, exportación y lectura de estatus */
.status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:170px;max-width:100%;padding:7px 12px;border-radius:10px;line-height:1.35;font-size:.8rem;font-weight:800;white-space:normal;word-break:normal;overflow-wrap:break-word;text-align:center;border:1px solid rgba(17,24,39,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.status-pill.status-empty{background:#edf1f5;color:#64748b}
.status-manager-wrap{overflow-x:auto;padding-bottom:4px}.status-manager{display:grid;gap:12px;margin-top:17px;min-width:980px}.status-editor{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(210px,1.6fr) 130px 110px 120px auto;gap:14px;align-items:end;padding:14px 0;border-top:1px solid var(--line)}.status-editor label{min-width:0}.status-editor input[type=color],input[type=color]{height:46px;min-height:46px;padding:4px;cursor:pointer}.status-editor .status-preview{align-self:center;background:#f8fafc;border:1px dashed #d8e1ea;border-radius:12px;padding:12px 14px;min-height:72px;display:flex;align-items:center;justify-content:center}.status-editor .status-active{display:flex;align-items:center;gap:8px;padding-bottom:12px;white-space:nowrap;font-size:.81rem}.status-editor .status-active input{height:17px;width:17px;margin:0}.status-editor button{align-self:end}@media(max-width:1100px){.status-manager{min-width:0}.status-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.status-editor .status-preview{grid-column:span 2}}@media(max-width:520px){.status-editor{grid-template-columns:1fr}.status-editor .status-preview{grid-column:span 1}}

/* KOONOL CXC v1.4 · Dashboard ejecutivo de reportes */
.executive-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;padding:19px 23px;background:#102a44;border-radius:16px;color:#fff}
.executive-header h2{font-size:1.2rem;letter-spacing:-.025em;color:#fff;margin:3px 0 4px}
.executive-header p{margin:0;color:#bfd1de;font-size:.82rem;max-width:670px}
.executive-header .btn.export{background:#fff;color:#0e6473;border-color:#fff;flex-shrink:0}
.executive-eyebrow{font-size:.64rem;letter-spacing:.13em;font-weight:800;color:#84dad7}
.executive-filter-panel{padding:20px 23px!important}
.executive-section-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px;margin-bottom:17px}
.executive-section-title h2{margin:0;font-size:1rem}
.executive-section-title span{color:var(--muted);font-size:.79rem}
.executive-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:19px}
.executive-kpi{position:relative;background:#fff;border:1px solid var(--line);border-radius:15px;min-height:165px;padding:19px 20px 17px;box-shadow:var(--shadow);min-width:0}
.executive-kpi-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;font-size:1.3rem;font-weight:850;margin-bottom:15px}
.executive-kpi-blue{color:#2261a3;background:#eaf2fe}.executive-kpi-teal{color:#0d7679;background:#e7f6f4}.executive-kpi-gold{color:#ab700d;background:#fff5d9}.executive-kpi-purple{color:#694ca6;background:#f0edff}
.executive-kpi-name{display:block;color:#596c82;font-size:.79rem;font-weight:750;line-height:1.35}
.executive-kpi strong{display:block;margin:2px 0 4px;font-size:2.2rem;line-height:1.15;letter-spacing:-.05em;color:#10233b}
.executive-kpi small{display:block;font-size:.73rem;color:#8b97a7;line-height:1.5}
.executive-chart-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;margin-bottom:17px}
.executive-chart-card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:23px;min-width:0;min-height:300px}
.executive-chart-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:19px}
.executive-chart-heading h2{font-size:1.1rem;margin:4px 0 2px;letter-spacing:-.02em}
.executive-chart-heading p{font-size:.79rem;color:var(--muted);margin:0}
.executive-chart-kicker{color:#0d8791;font-weight:800;letter-spacing:.13em;font-size:.64rem}
.executive-caption-pill{border:1px solid #d5e2ea;border-radius:20px;padding:4px 10px;font-size:.7rem;color:#738297;font-weight:700}
.executive-trend-svg{display:block;width:100%;max-height:270px;overflow:visible}
.executive-chart-foot{color:#8998a8;font-size:.71rem;margin-top:9px}
.executive-donut-grid{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:12px;margin-top:5px}
.executive-donut{width:190px;max-width:100%;height:auto}
.executive-legend{display:grid;gap:12px;align-content:center;max-height:270px;overflow-y:auto;padding:4px 2px}
.executive-legend-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:6px 9px;align-items:center;font-size:.76rem}
.executive-legend-row strong{color:#182d45;white-space:nowrap;font-size:.8rem}
.executive-legend-row small{grid-column:2;line-height:1;font-size:.7rem;color:var(--muted)}
.executive-legend-label{min-width:0;overflow-wrap:break-word;line-height:1.25}
.executive-swatch{width:12px;height:12px;border-radius:4px;display:block}
.executive-bar-item{margin-bottom:16px}.executive-bar-item:last-child{margin-bottom:0}
.executive-bar-label{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:7px;font-size:.8rem}
.executive-bar-label span{min-width:0;overflow-wrap:break-word;line-height:1.32;font-weight:640}
.executive-bar-label strong{white-space:nowrap;font-weight:850;color:#152b46;font-size:.8rem}
.executive-bar-label strong small{font-weight:500;color:#8b98a8;font-size:.72rem}
.executive-bar-track{height:9px;background:#eaf0f5;border-radius:10px;overflow:hidden}
.executive-bar-fill{height:100%;border-radius:10px;background:linear-gradient(90deg,#2bb8b0,#168494)}
.executive-bar-agent{background:linear-gradient(90deg,#528ad4,#355eb3)}
.executive-empty{text-align:center;font-size:.85rem;color:var(--muted);padding:55px 10px}
.executive-disclaimer{border:1px solid #e1e8f0;background:#f7fafc;border-radius:11px;padding:14px 18px;color:#64748b;font-size:.77rem;line-height:1.6;margin-bottom:24px}
.executive-disclaimer strong{color:#1e3a55}
.executive-detail{scroll-margin-top:20px}
.executive-detail .panel-heading{gap:18px}
@media(max-width:1380px){.executive-chart-layout{grid-template-columns:1fr 1fr}.executive-donut-grid{grid-template-columns:1fr;justify-items:center;gap:0}.executive-legend{justify-self:stretch;max-height:180px}.executive-chart-card{padding:20px}}
@media(max-width:1100px){.executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-chart-layout{grid-template-columns:1fr 1fr}.executive-donut-grid{grid-template-columns:1fr}}
@media(max-width:800px){.executive-header{align-items:start;flex-direction:column}.executive-chart-layout{grid-template-columns:1fr}.executive-donut-grid{grid-template-columns:180px minmax(0,1fr)}.executive-legend{max-height:260px}}
@media(max-width:520px){.executive-kpis{gap:9px}.executive-kpi{padding:13px 12px;min-height:150px}.executive-kpi strong{font-size:1.8rem}.executive-kpi-name{font-size:.73rem}.executive-kpi small{font-size:.66rem}.executive-chart-card{padding:16px}.executive-header{padding:18px}.executive-donut-grid{grid-template-columns:1fr}.executive-donut{max-width:180px}.executive-legend{width:100%}.executive-detail .panel-heading{align-items:flex-start;flex-direction:column}.executive-filter-panel{padding:16px!important}}

/* KOONOL CXC v1.4.1: 3 indicadores ejecutivos después de retirar cobertura. */
@media(max-width:640px){.executive-kpis{grid-template-columns:1fr}}

/* KOONOL CXC 1.5 - Cartera, importación flexible y presentación de contactos */
.client-directory-table{min-width:1120px}
.client-directory-table td{vertical-align:top}
.client-directory-table .contact-cell{min-width:200px;max-width:340px;overflow-wrap:anywhere;white-space:normal}
.cartera-chip{display:inline-block;max-width:210px;padding:6px 10px;border-radius:8px;background:#ecf2f8;color:#254b68;font-size:.8rem;font-weight:750;line-height:1.35;overflow-wrap:break-word;white-space:normal}
.client-filter-form{max-width:none;min-width:0;flex:1 1 650px;flex-wrap:wrap;align-items:center}
.client-filter-form input[type=search]{flex:2 1 250px;min-width:200px;width:auto}
.client-filter-form select{flex:1 1 210px;min-width:190px;max-width:320px;margin:0}
.clients-toolbar{flex-wrap:wrap}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.import-update-option{display:flex!important;align-items:flex-start;gap:12px;padding:15px;border:1px solid #c8d6e5;border-radius:11px;background:#f7fafc}
.import-update-option input{width:19px;height:19px;flex-shrink:0;margin:3px 0 0}
.import-update-option small{display:block;color:#526274;font-weight:400;font-size:.81rem;margin-top:5px}
@media(max-width:700px){.client-filter-form select{max-width:none}.client-filter-form .btn{flex:1 1 100px}}

.dashboard-cartera-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.dashboard-cartera-form label{flex:0 0 220px;margin:0}
.dashboard-cartera-form select{flex:1 1 240px;max-width:390px;margin:0}
@media(max-width:700px){.dashboard-cartera-form label{flex-basis:100%}.dashboard-cartera-form select{max-width:100%}}

/* KOONOL CXC v1.6 — Corte financiero Microsip */
.finance-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.finance-banner p{max-width:760px;margin:4px 0 0;color:var(--muted)}
.finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:12px 0 24px}
.finance-kpis .stat-card{min-width:0;padding:18px 20px;min-height:100px}
.finance-kpis .stat-card strong{font-size:clamp(1.15rem,1.7vw,1.85rem);word-break:break-word;letter-spacing:-.02em}
.finance-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.finance-heading p{margin:4px 0 0}
.finance-currency{margin:20px 0 6px}
.finance-table{min-width:1050px}
.finance-composition{display:flex;overflow:hidden;height:19px;width:100%;border-radius:999px;background:#e8eef3;margin:17px 0}
.finance-segment{flex:0 0 auto;height:100%;min-width:0}
.finance-better{font-weight:750;color:#186744}
.finance-worse{font-weight:750;color:#b73535}
#financial-client-preview:empty{display:none}
#financial-client-preview p{margin:9px 0 0}
@media(max-width:1050px){.finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.finance-kpis{grid-template-columns:1fr}.finance-banner{align-items:stretch}.finance-banner .btn{width:100%}}

.finance-trend-scroll{overflow-x:auto;padding:4px 0 8px}
.finance-trend{display:flex;align-items:flex-end;gap:12px;min-height:220px;min-width:max-content;padding:10px 4px 0;border-bottom:1px solid #dce5ee}
.finance-trend-item{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:72px}
.finance-trend-item small{color:var(--muted);white-space:nowrap;font-size:.72rem}
.finance-trend-bars{height:180px;width:48px;display:flex;align-items:flex-end;justify-content:center;position:relative}
.finance-trend-total{display:block;width:36px;background:#a5cfda;border-radius:6px 6px 0 0}
.finance-trend-overdue{display:block;width:22px;position:absolute;bottom:0;background:#cb4444;border-radius:5px 5px 0 0}
