:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20242d;background:#f5f5f9;font-synthesis:none;--muted:#737987;--line:#e9eaf0}*{box-sizing:border-box}body{margin:0;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;min-height:48px;padding:12px 20px;font-weight:600;border-radius:15px;transition:background .15s,transform .15s}button:active{transform:scale(.98)}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #368bf0;outline-offset:3px}[hidden]{display:none!important}.topbar{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:25px 32px}.brand{text-decoration:none;display:flex;align-items:center;gap:11px;color:#20242d;font-size:21px;font-weight:730;letter-spacing:-.7px}.brand-icon{width:39px;height:39px;display:grid;place-content:center;background:#2E5188;color:#fff;border-radius:13px;font-size:29px;line-height:1;padding-bottom:4px}.identity{display:flex;align-items:center;gap:10px}.avatar{height:40px;width:40px;border:3px solid white;background:#dce2ec;color:#2E5188;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700}.identity small{display:block;font-size:9px;color:var(--muted);letter-spacing:1.1px;margin-bottom:4px}.identity #empleado{font-size:12px;font-weight:600;display:block;max-width:240px}main{max-width:1180px;margin:auto;padding:24px 32px 110px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.5px;color:var(--muted);margin:0 0 12px}h1{font-size:52px;line-height:1.08;letter-spacing:-2.5px;margin:0;font-weight:720}h1 span{color:#9298a3}.subtitle{font-size:14px;color:var(--muted);margin:15px 0 0}.live-pill{display:flex;align-items:center;gap:8px;font-size:11px;background:#fff;border:1px solid var(--line);border-radius:30px;padding:11px 15px;color:#5c636f}.live-pill span{width:6px;height:6px;border-radius:50%;background:#2E5188}.stats{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:16px}.stats article{background:#fff;border:1px solid #eeeef3;border-radius:24px;padding:25px;min-width:0}.stats .hero-stat{background:#2E5188;color:white;border-color:#2E5188}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:26px}.stats small{font-size:12px;font-weight:550;color:#747b88}.hero-stat small{color:#c2c9d5}.stat-icon{color:#a6b8d6;font-size:23px}.dot{height:8px;width:8px;border-radius:50%;flex-shrink:0}.orange{background:#df9959}.blue{background:#6d94dc}.stats strong{display:block;font-size:clamp(24px,3vw,39px);letter-spacing:-1.5px;font-weight:650;margin:17px 0 13px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stats article p{font-size:11px;margin:0;color:#8a909b}.hero-stat p{color:#afb8c7!important}.quick-section{margin:29px 0 37px}.section-label{font-size:12px;font-weight:600;margin-bottom:12px;color:#6d7380}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick-actions button{background:#fff;border:1px solid var(--line);display:flex;align-items:center;text-align:left;gap:12px;padding:15px;font-size:13px;min-height:74px;border-radius:19px}.action-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:13px;font-size:25px;font-weight:400}.green{background:#e7ecf5;color:#2E5188}.blue-bg{background:#eaf1ff;color:#3e7ad0}.purple{background:#f2edfc;color:#9270ca}.chevron{margin-left:auto;color:#a1a6b0;font-size:16px;font-weight:400}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-head .eyebrow{font-size:9px;margin-bottom:7px}h2{font-size:27px;letter-spacing:-1px;margin:0;font-weight:700}.primary{background:#2E5188;color:white}.primary:hover{background:#2E5188}.secondary{background:#e9edf1;color:#4d5867}.icon-button{background:white;border:1px solid var(--line);font-size:23px;width:49px;padding:8px;color:#65737a}.searchbar{display:flex;gap:8px;margin-bottom:12px}.search-field{display:flex;gap:10px;align-items:center;flex:1;background:#eaeaef;border-radius:15px;padding:0 15px;min-width:0}.search-field span{font-size:25px;color:#8a909a}.search-field input{width:100%;min-width:0;border:0;background:transparent;outline-offset:-3px;min-height:50px;font-size:14px;padding:10px 0}.source-summary{color:#7b818d;font-size:11px;line-height:1.6;margin:13px 2px 20px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.client-card,.record-card{background:white;border:1px solid #e9ebf0;border-radius:21px;padding:21px;min-width:0}.card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.client-name{display:flex;gap:10px;min-width:0;align-items:center}.client-initials{width:37px;height:37px;border-radius:13px;background:#f0f2f6;color:#7b879b;flex-shrink:0;display:grid;place-items:center;font-size:11px;font-weight:650}.client-name h3,.record-card h3{font-size:14px;margin:0 0 5px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;letter-spacing:-.2px}.meta{font-size:10px;color:#8a909a;margin:0;line-height:1.6;overflow-wrap:anywhere}.badge{display:inline-flex;border-radius:8px;background:#fdf0e6;color:#a56830;font-size:10px;padding:6px 8px;white-space:nowrap;font-weight:600;flex-shrink:0}.badge.good{background:#e9eef5;color:#2E5188}.amount-row{display:flex;align-items:flex-end;justify-content:space-between;margin:20px 0 15px;gap:12px}.amount-row small{display:block;font-size:10px;color:#8a909b;margin-bottom:7px}.amount{font-size:26px;letter-spacing:-1px;font-weight:650;overflow-wrap:anywhere}.overdue{text-align:right;font-size:14px;font-weight:600;color:#b07c4b;white-space:nowrap}.overdue small{font-weight:400}.card-detail{border-top:1px solid #f0f1f5;padding:12px 0 0;display:flex;align-items:center;gap:6px;font-size:11px;color:#8a909a;line-height:1.6;overflow-wrap:anywhere}.card-actions{display:flex;gap:9px;margin-top:15px}.card-actions button,.card-actions a{flex:1;font-size:12px;min-height:46px;padding:12px 10px;border-radius:12px;text-align:center;text-decoration:none;display:flex;justify-content:center;align-items:center}.card-actions .manage{background:#edf0f6;color:#2E5188}.contact{background:#f5f6f9;color:#667383;border:1px solid #e9ecf1}.record-note{color:#747d8a;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.record-details{background:#f7f8fb;border-radius:12px;padding:10px 13px;margin-top:15px}.detail-line{display:flex;justify-content:space-between;gap:14px;font-size:11px;padding:6px 0;line-height:1.5}.detail-line span:first-child{color:#858d99}.detail-line span:last-child{text-align:right;overflow-wrap:anywhere;min-width:0}.record-footer{margin-top:15px;font-size:10px;color:#858d99}.pagination{display:flex;align-items:center;justify-content:center;gap:15px;padding:25px 0}.pagination span{font-size:11px;color:var(--muted)}.pagination button{font-size:12px}.footer-note{text-align:center;font-size:10px;color:#999faa;margin-top:26px}.bottom-nav{position:fixed;z-index:20;bottom:18px;left:50%;transform:translateX(-50%);width:min(480px,calc(100% - 32px));display:grid;grid-template-columns:repeat(4,1fr);padding:8px;background:#ffffffed;backdrop-filter:blur(20px);border:1px solid #e7e8ee;box-shadow:0 8px 35px #23304410;border-radius:24px}.bottom-nav button{padding:7px 3px;display:flex;flex-direction:column;gap:5px;align-items:center;background:transparent;color:#8f95a1;font-size:10px;font-weight:500;border-radius:17px;min-height:55px}.nav-icon{font-size:23px;line-height:1.1}.bottom-nav .active{background:#eaeef4;color:#2E5188}.notice{padding:15px 18px;background:#fff3e7;border:1px solid #f0dfc9;color:#805a32;border-radius:16px;font-size:13px;line-height:1.6;margin-bottom:20px;overflow-wrap:anywhere}.notice.success{background:#e8edf6;border-color:#d4ddeb;color:#2E5188}.empty{grid-column:1/-1;text-align:center;padding:55px 25px;background:#fff;border:1px dashed #dfe3ea;border-radius:22px;color:#8a929e}.empty-icon{display:block;font-size:35px;color:#8f9eb6;margin-bottom:16px}.empty h3{color:#515d6e;font-size:17px}.empty p{font-size:13px;line-height:1.8;max-width:340px;margin:12px auto}.skeleton{min-height:250px;background:linear-gradient(110deg,#fff 20%,#eceef3 40%,#fff 60%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:21px}@keyframes shimmer{to{background-position:-200% 0}}.overlay{position:fixed;inset:0;z-index:40;background:#17232966;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px}.sheet{background:#f8f9fc;width:100%;max-width:540px;max-height:90dvh;overflow-y:auto;border-radius:29px;padding:26px;box-shadow:0 20px 70px #13272a2a;overscroll-behavior:contain}.sheet-handle{width:35px;height:5px;background:#d6d9df;border-radius:10px;margin:-13px auto 20px}.sheet-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.sheet-heading h2{font-size:25px}.sheet-heading .eyebrow{font-size:9px;margin-bottom:7px}.close-button{width:36px;min-height:36px;border-radius:50%;padding:0;font-size:23px;background:#e9ecf1;color:#8a929d;flex-shrink:0}.form-help{font-size:12px;line-height:1.7;color:#828a98;margin:18px 0}#form{display:grid;gap:18px}#form label{font-size:12px;color:#647080;font-weight:550;display:grid;gap:8px}#form input,#form select,#form textarea{border:1px solid #e2e6ed;background:#fff;border-radius:13px;min-height:52px;padding:13px;color:#273547;width:100%;font-size:16px}#form select[multiple]{min-height:150px}#form .actions{display:grid;gap:8px;margin-top:8px}#form .actions button{min-height:53px}#form .secondary{background:transparent}.module-menu{display:grid;gap:7px;margin-top:22px}.module-menu button{display:flex;align-items:center;gap:14px;text-align:left;background:white;border:1px solid #edf0f5;padding:14px;font-size:14px}.module-menu .action-icon{height:34px;width:34px;font-size:21px}.print{background:#eceff3;color:#2E5188}body.modal-open{overflow:hidden}@media(min-width:1000px){.intro h1 br{display:none}h1 span{margin-left:8px}.intro{padding:12px 0 10px}}@media(max-width:640px){.topbar{padding:18px 20px}.brand{font-size:18px}.brand-icon{width:34px;height:34px;font-size:25px}.identity small{display:none}.identity #empleado{font-size:10px;max-width:145px}.avatar{width:33px;height:33px;font-size:10px}.identity{gap:7px}main{padding:15px 20px 125px}.intro{align-items:flex-start;margin-bottom:25px}.intro h1{font-size:39px;letter-spacing:-1.8px}.intro .eyebrow{font-size:8px;letter-spacing:1.2px}.subtitle{font-size:12px;max-width:240px;line-height:1.6}.live-pill{font-size:0;padding:9px;background:#e6ebf2;border:0}.live-pill span{height:7px;width:7px}.stats{grid-template-columns:1fr 1fr;gap:11px}.stats article{padding:19px;border-radius:21px}.stats .hero-stat{grid-column:1/-1;padding:23px}.hero-stat strong{font-size:39px!important;margin:15px 0 12px}.stats strong{font-size:25px;letter-spacing:-1px;margin:15px 0 9px}.stats small{font-size:11px}.stats article p{font-size:10px}.quick-section{margin:25px 0 29px}.quick-actions{gap:8px}.quick-actions button{flex-direction:column;justify-content:center;text-align:center;gap:10px;padding:14px 6px;font-size:10px;border-radius:18px;min-height:103px}.quick-actions .chevron{display:none}.action-icon{width:36px;height:36px;border-radius:12px}.section-label{font-size:11px}.section-head{margin-bottom:17px}.section-head h2{font-size:25px}.section-head .eyebrow{font-size:8px}.section-head .primary{font-size:12px;min-height:44px;padding:10px 15px}.searchbar{gap:6px}.search-field{padding:0 11px}.search-field input{font-size:12px}.searchbar .primary{font-size:12px;padding:10px 13px}.icon-button{width:44px}.source-summary{font-size:10px;margin:12px 2px 17px}.card-grid{grid-template-columns:1fr;gap:13px}.client-card,.record-card{padding:19px;border-radius:21px}.client-name h3{font-size:14px}.amount{font-size:28px}.card-actions button,.card-actions a{font-size:13px;min-height:48px}.bottom-nav{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:440px;padding:7px}.overlay{padding:0;align-items:flex-end}.sheet{border-radius:29px 29px 0 0;max-height:94dvh;padding:26px 22px calc(25px + env(safe-area-inset-bottom))}.pagination{gap:9px}.pagination button{padding:12px;font-size:11px}.pagination span{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media print{body>*{display:none!important}#print-area{display:block!important;padding:35px}body{background:white}}
@media(max-width:640px){.stats article:not(.hero-stat) strong{font-size:clamp(18px,5vw,23px);white-space:nowrap;letter-spacing:-.8px}.stats .hero-stat strong{font-size:clamp(26px,8vw,36px)!important;white-space:nowrap}.client-name{gap:8px}.card-top .badge{font-size:9px;padding:6px}.quick-actions button{font-size:11px}}
.quick-actions{grid-template-columns:repeat(6,minmax(0,1fr))}.quick-actions button{grid-column:span 2}.quick-actions button:nth-child(n+4){grid-column:span 3}.reference-content{display:grid;gap:16px;margin-top:20px}.reference-content label{display:grid;gap:8px;font-size:13px;color:#526174}.reference-content input,.reference-content select{width:100%;min-height:52px;border:1px solid #dfe4eb;border-radius:13px;padding:12px;font:inherit;background:white}.reference-content button{min-height:50px}.ref-step{display:flex;gap:7px;margin:18px 0}.ref-step span{flex:1;height:4px;border-radius:4px;background:#dfe6e8}.ref-step .done{background:#2E5188}.reference-choice{display:flex!important;grid-template-columns:unset;align-items:flex-start;gap:12px!important;background:#fff;border:1px solid #e0e6ec;border-radius:16px;padding:16px}.reference-choice input{width:22px;min-height:22px;height:22px;accent-color:#2E5188;margin:2px 0 0}.reference-choice div{flex:1;min-width:0}.reference-choice strong{display:block;line-height:1.4;font-size:13px}.reference-choice small{display:block;line-height:1.6;color:#7b8491;font-size:11px;margin-top:7px}.reference-total{background:#2E5188;color:white;padding:21px;border-radius:19px}.reference-total small{color:#b8c3d5;font-size:12px}.reference-total strong{display:block;font-size:31px;letter-spacing:-1px;margin-top:10px}.ref-bank{background:white;border:1px solid #e2e8ec;border-radius:15px;padding:16px}.ref-bank h3{font-size:15px;margin:0 0 10px}.ref-code{font-family:ui-monospace,monospace;overflow-wrap:anywhere;font-size:17px;color:#2E5188;user-select:all;line-height:1.6}.reference-fiche .detail-line{font-size:12px}.reference-fiche h3{font-size:18px;line-height:1.5}.reference-result-actions{display:grid;gap:8px}.ref-hint{font-size:12px;line-height:1.7;color:#788591;margin:0}.reference-choice:has(input:checked){border-color:#2E5188;background:#f0f4fa}
.reference-dialog{border:0;color:inherit;margin:auto}.reference-dialog::backdrop{background:#17232966;backdrop-filter:blur(5px)}.reference-content #ref-distributors,.reference-content #ref-client-list{display:grid;gap:10px}.reference-content form{display:grid;gap:10px}.reference-content .reference-fiche{display:grid;gap:15px}@media(max-width:640px){.reference-dialog{margin:auto auto 0;max-height:94dvh;width:100%;max-width:100%}}
.my-progress{width:100%;display:flex;align-items:center;gap:17px;padding:22px 25px;margin-top:20px;background:#e6eaf1;border:1px solid #d8dee7;text-align:left;color:#2E5188;border-radius:23px}.progress-icon{display:grid;place-items:center;background:white;width:47px;height:47px;border-radius:15px;font-size:25px}.progress-copy{display:grid;gap:4px}.progress-copy>span{font-size:13px;font-weight:650}.progress-copy strong{font-size:38px;letter-spacing:-1px;line-height:1.2}.progress-copy small{font-size:11px;font-weight:400;color:#606d81}.progress-more{margin-left:auto;font-size:12px}.activity-dialog{border:0;color:inherit;width:100%;max-width:660px;margin:auto}.activity-dialog::backdrop{background:#17232966;backdrop-filter:blur(5px)}.activity-description{margin:18px 0}.activity-range{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.activity-range label{display:grid;gap:8px;font-size:12px;color:#647080}.activity-range input{width:100%;min-width:0;min-height:50px;padding:10px;border:1px solid #dfe5ec;border-radius:13px;background:white;color:inherit;font-size:16px}.activity-range button{grid-column:1/-1}.activity-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.activity-kpis article{background:white;border:1px solid #e5e9ed;border-radius:17px;padding:15px;min-width:0}.activity-kpis small{font-size:11px;color:#7b8790}.activity-kpis strong{display:block;font-size:32px;margin-top:8px;letter-spacing:-1px}.activity-kpis .activity-money{grid-column:1/-1;background:#2E5188;color:white}.activity-money small{color:#c0c8d6}.activity-segments{display:flex;background:#e6e9ee;padding:5px;gap:3px;border-radius:13px;margin-bottom:15px}.activity-segments button{flex:1;min-height:44px;padding:9px 6px;font-size:12px;background:transparent;color:#75808b}.activity-segments .active{background:white;color:#2E5188;box-shadow:0 1px 3px #0001}.activity-detail{display:grid;gap:10px;margin-top:15px}.activity-detail .amount{font-size:24px;margin:12px 0}.activity-definition{margin-top:20px}@media(max-width:640px){.my-progress{padding:18px;gap:12px}.progress-icon{display:none}.progress-more{max-width:90px;line-height:1.7;font-size:11px}.activity-dialog{max-width:100%;max-height:94dvh;margin:auto auto 0}.activity-kpis article{padding:12px}.activity-kpis small{font-size:10px}.activity-kpis strong{font-size:29px}}
.daily-section{background:#fff;border:1px solid #e1e4e8;border-radius:24px;padding:23px;margin-bottom:23px}.daily-section h2{font-size:25px}.daily-section .section-head{margin-bottom:17px}.daily-section .section-head button{font-size:12px;padding:10px 15px}.daily-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.daily-counts button{display:grid;gap:8px;padding:17px;background:#eaeef5;color:#2E5188;text-align:left;min-width:0}.daily-counts button:nth-child(2){background:#fff1e9;color:#aa5e35}.daily-counts button:nth-child(3){background:#eef2fb;color:#5579b2}.daily-counts strong{font-size:34px;letter-spacing:-1px}.daily-counts span{font-size:12px}.visit-cta{margin-top:12px;min-height:49px;width:100%}.daily-section .ref-hint{margin-top:14px}.daily-alert{font-size:12px;color:#a05b38;margin:9px 0}.agenda-form{display:grid;gap:17px}.agenda-form label{display:grid;gap:8px;font-size:13px;color:#65717f}.agenda-form input,.agenda-form textarea,.agenda-form select{width:100%;min-width:0;min-height:52px;padding:13px;border:1px solid #dfe5ec;border-radius:13px;background:#fff;font-size:16px;font-family:inherit}.reference-content .amount{margin:15px 0 7px}@media(max-width:640px){.daily-section{padding:18px}.daily-counts button{padding:13px}.daily-counts strong{font-size:30px}.daily-counts span{font-size:11px}}
.gestion-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:-15px 0 30px}.gestion-tools button{font-size:12px}.visit-photo{width:100%;max-height:550px;object-fit:contain;border-radius:15px;background:#eee}.reference-content h3{margin:10px 0 0}.reference-content .notice{margin:0}@media(max-width:640px){.gestion-tools{grid-template-columns:1fr;margin-top:-10px}.gestion-tools button{min-height:50px}}
.offline-status{position:sticky;top:0;z-index:35;background:#fff1d9;color:#775323;border-bottom:1px solid #ead2a9;padding:12px 20px;display:flex;align-items:center;justify-content:center;gap:15px;font-size:12px;line-height:1.6}.offline-status button{background:#fff;color:#775323;min-height:44px;font-size:12px}@media(max-width:640px){.offline-status{flex-direction:column;gap:7px;padding:10px 15px}.offline-status button{width:100%}}
.assignment-admin{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px;margin-bottom:24px;background:#fff;border:1px solid #e5e9ec;border-radius:24px}.assignment-admin h3{margin:3px 0 8px}.assignment-admin .card-actions{flex-wrap:wrap}.activity-dialog textarea{font:inherit;padding:14px;border:1px solid #dce1e5;border-radius:14px;resize:vertical}@media(max-width:640px){.assignment-admin{display:block;padding:20px}.assignment-admin .card-actions{display:grid;grid-template-columns:1fr;margin-top:16px}.assignment-admin button{min-height:50px}}
.followup-section{margin:0 0 28px;padding:24px;background:#fff;border:1px solid #e5e9ec;border-radius:26px}.followup-section h2{font-size:25px}.attention-preview{background:#f3f5f8;border-radius:20px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.attention-preview h3{margin:12px 0 8px;font-size:21px}.attention-preview button{min-height:50px;flex-shrink:0}.promise-heading{margin:24px 0 16px}.promise-heading h3{margin:4px 0}.promise-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.promise-kpis button{padding:18px 10px;border-radius:19px;background:#f4f5f8;color:#242b33;min-height:95px}.promise-kpis button:first-child{background:#eaeff7;color:#2E5188}.promise-kpis button:nth-child(2){background:#fff0ee;color:#b83d32}.promise-kpis strong{display:block;font-size:34px;line-height:1.2;margin-bottom:8px}.promise-kpis span{font-size:12px}.badge.danger{background:#fff0ee;color:#b83d32}.priority-number{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:#edf0f4;color:#2E5188;font-weight:700;margin-bottom:12px}.promise-period{display:grid;grid-template-columns:1fr 1fr;gap:12px}.promise-check{display:flex!important;align-items:start;gap:10px;font-size:13px!important}.promise-check input{width:22px!important;min-height:22px!important;height:22px!important;flex-shrink:0}.attention-list{display:grid;gap:12px}@media(max-width:640px){.followup-section{padding:18px}.followup-section .section-head{align-items:start;gap:10px}.followup-section .section-head>button{font-size:11px;max-width:140px}.attention-preview{display:block;padding:17px}.attention-preview button{width:100%;margin-top:14px}.promise-kpis{gap:7px}.promise-kpis button{padding:15px 4px}.promise-kpis strong{font-size:32px}.promise-kpis span{font-size:10px}}
.active-client{border:1px solid #dce1e9;border-radius:25px;padding:24px;margin-bottom:26px;background:#f7f9fb}.active-client h2{font-size:27px;line-height:1.2;overflow-wrap:anywhere}.active-client .section-head{align-items:start}.client-balances{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.client-balances article{padding:15px;background:white;border:1px solid #e8eaee;border-radius:16px}.client-balances small{display:block;font-size:11px;color:#6b7a73;margin-bottom:8px}.client-balances strong{font-size:22px;letter-spacing:-.6px}.active-client .detail-line{align-items:start;gap:22px}.active-client .detail-line span:last-child{text-align:right;overflow-wrap:anywhere}.form-client{padding:15px 0 4px}.form-client small{font-size:10px;letter-spacing:1px;color:#68707c}.form-client h3{font-size:22px;margin:8px 0 12px}.fixed-credit{display:grid;gap:8px;padding:16px;border:1px solid #dce1e9;border-radius:16px;background:#f2f4f8}.fixed-credit small{font-size:11px;color:#616975}.fixed-credit strong{font-size:15px}.fixed-credit span{font-size:13px;color:#2E5188}@media(max-width:640px){.active-client{padding:18px}.active-client h2{font-size:23px}.active-client .section-head{display:block}.active-client .section-head button{margin-top:14px;min-height:46px}.client-balances{grid-template-columns:1fr 1fr}.client-balances article:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.client-balances article:last-child small{margin:0}.client-balances strong{font-size:22px}.active-client .detail-line{display:grid;gap:5px}.active-client .detail-line span:last-child{text-align:left}.record-card .card-actions{flex-wrap:wrap;gap:10px}.record-card .card-actions .primary,.record-card .card-actions .secondary{min-height:48px}}
.customer-sections{display:grid;gap:18px;margin:20px 0}.customer-sections section{border:1px solid #e3e6eb;background:#fff;border-radius:18px;padding:18px}.customer-sections h3,.arrears-breakdown h3{font-size:14px;margin:0 0 14px;color:#2E5188}.customer-sections .detail-line{align-items:start;gap:16px}.customer-sections .detail-line span:last-child{text-align:right;overflow-wrap:anywhere;max-width:65%}.customer-phone{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edeef0}.customer-phone:last-child{border:0}.customer-phone small{display:block;font-size:11px;color:#78867e;margin-bottom:5px}.customer-phone span{font-size:14px;font-weight:600;overflow-wrap:anywhere}.customer-phone a{min-height:44px;display:flex;align-items:center;flex-shrink:0}.arrears-breakdown{background:#f5f7f9;border:1px solid #e2e5eb;padding:18px;border-radius:18px;margin:18px 0}.arrears-total{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:13px;padding-top:16px;border-top:1px solid #dce1e9}.arrears-total span{color:#2E5188;font-size:12px;max-width:55%;line-height:1.5}.arrears-total strong{font-size:24px;color:#2E5188;letter-spacing:-.6px}.customer-details{margin:18px 0;border:1px solid #e2e5e9;border-radius:18px;padding:15px}.customer-details>summary{cursor:pointer;font-size:13px;font-weight:600;color:#2E5188;min-height:32px;align-content:center}.customer-details .customer-sections{margin-bottom:0}.customer-details section{padding:12px}@media(max-width:640px){.customer-sections .detail-line{display:grid;gap:6px}.customer-sections .detail-line span:last-child{text-align:left;max-width:100%}.arrears-total{align-items:start;flex-direction:column;gap:8px}.arrears-total span{max-width:100%}.arrears-total strong{font-size:29px}.customer-details .customer-sections section{border:0;padding:10px 0}}
.active-client .arrears-breakdown .detail-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.active-client .arrears-breakdown .detail-line span:last-child{text-align:right;font-weight:600;max-width:none}

a[data-google-map]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border-radius:15px;font-weight:600;text-decoration:none;text-align:center;flex-wrap:wrap;}

.ref-continue-top{position:sticky;top:0;z-index:2;background:#fff;padding:10px 0;border-bottom:1px solid var(--line)}

.account-filters{display:grid;gap:14px;margin-bottom:20px}.account-filters .agenda-form{grid-template-columns:repeat(2,minmax(0,1fr));background:#fff;padding:16px;border-radius:18px}.account-filters .agenda-form .card-actions{grid-column:1/-1}

.portfolio-sync{text-align:center;margin:8px 0 28px}.portfolio-sync button{background:transparent;color:#7b8491;min-height:44px;padding:8px 14px;font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:3px}

.route-progress{background:#edf1f7;padding:18px;border-radius:18px;margin:12px 0}.route-progress progress{display:block;width:100%;height:14px;accent-color:#2E5188;margin:12px 0}

/* Cabecera compacta y contenido inmediato dentro de Telegram. */
.topbar{padding-top:12px;padding-bottom:12px}.intro{display:none!important}
.stats{gap:10px;margin:0 0 12px}.stats article,.stats .hero-stat{padding:14px;border-radius:17px;min-width:0}.stats strong,.stats .hero-stat strong{font-size:27px!important;margin:9px 0 4px;letter-spacing:-.7px}.stats article p{margin:0;font-size:10px}.stats .stat-icon{display:none}
.day-shortcuts{display:flex;gap:8px;margin:0 0 10px}.day-shortcuts button{flex:1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;font-size:12px;padding:10px 13px}.day-shortcuts strong{font-size:18px;color:#2E5188}
.day-tools{background:white;border:1px solid #e1e4e8;border-radius:16px;margin:0 0 16px}.day-tools>summary{cursor:pointer;padding:12px 14px;min-height:44px;font-weight:600;font-size:13px;color:#2E5188}.day-tools>summary>span{display:block;font-size:10px;font-weight:400;color:#798780;margin:4px 0 0 14px}.day-tools-content{padding:0 12px 12px}.day-tools-content .daily-section,.day-tools-content .followup-section{padding:14px;margin:12px 0}.day-tools-content .my-progress{margin:12px 0;padding:14px}.day-tools-content .quick-section{margin:16px 0}.day-tools-content .gestion-tools{margin:12px 0 0}.history-events{display:grid;gap:10px}.history-event strong{color:#2E5188}
#active-client>.section-head h2{font-size:19px}#active-client>.section-head{margin-bottom:8px}#active-client>.customer-details{margin:8px 0;padding:10px 12px}#active-client>.card-actions{margin-top:8px}#active-client>.meta{display:none}
#title:focus{outline:none}.workspace{scroll-margin-top:12px}.workspace>.section-head{margin-top:0}
@media(max-width:640px){
 .topbar{padding:10px 16px;gap:10px}.brand{font-size:17px}.brand-icon{height:29px;width:29px;font-size:22px}.identity #empleado{max-width:150px}.avatar{width:28px;height:28px}
 main{padding:10px 14px 108px}.stats{grid-template-columns:1fr 1fr;gap:7px}.stats .hero-stat{grid-column:auto}.stats article,.stats .hero-stat{padding:12px;border-radius:15px}.stats small{font-size:10px;line-height:1.3;display:block}.stats strong,.stats .hero-stat strong{font-size:clamp(17px,5.1vw,23px)!important;white-space:nowrap;margin:8px 0 3px}.stats article:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:10px}.stats article:last-child strong{margin:0}.stats article:last-child p{display:none}.stats article p{font-size:9px}.section-head h2{font-size:23px}.section-head{margin-bottom:12px}.section-head .eyebrow{margin-bottom:5px}.source-summary{margin:8px 2px 12px}
 .day-tools-content .progress-copy strong,.day-tools-content .daily-counts strong,.day-tools-content .promise-kpis strong{font-size:26px}.day-tools-content .promise-kpis button{min-height:72px}.day-tools-content .daily-counts button{padding:10px}.day-tools-content .daily-section h2,.day-tools-content .followup-section h2{font-size:21px}.day-tools-content .attention-preview h3{font-size:17px}.day-tools-content .quick-actions{flex-wrap:wrap}.day-tools-content .quick-actions button{min-height:68px}
 .bottom-nav{bottom:max(8px,env(safe-area-inset-bottom));padding:5px;border-radius:20px}.bottom-nav button{min-height:48px;padding:6px 3px}.nav-icon{font-size:21px}
}
.portfolio-sync .sync-result{max-width:520px;margin:8px auto 0;font-size:12px;line-height:1.6;color:#2E5188;overflow-wrap:anywhere}.portfolio-sync .sync-result.sync-error{color:#a33c32}
.identity #puesto{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.3;color:#667383;margin-bottom:3px}@media(max-width:640px){.identity #puesto{display:block;font-size:9px;max-width:150px;margin-bottom:2px}}
/* Perfil accesible desde las iniciales, sin aumentar la cabecera. */
.identity .avatar{padding:0;min-height:40px;min-width:40px;flex-shrink:0}.profile-person{display:flex;align-items:center;gap:14px}.profile-person h3{margin:0;font-size:19px}.profile-person p{margin:5px 0 0;color:#656c77;font-size:13px}.profile-initials{height:52px;width:52px;border-radius:18px;background:#dce2ec;color:#2E5188;display:grid;place-items:center;flex-shrink:0;font-size:20px;font-weight:700}.profile-data{padding:12px 15px;background:white;border:1px solid #e2e5e9;border-radius:16px}.profile-kpis{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.profile-kpis article{background:white;border:1px solid #e2e5e9;border-radius:16px;padding:14px}.profile-kpis strong{display:block;font-size:28px;color:#2E5188}.profile-kpis span{display:block;font-size:11px;color:#6d7b73;margin-top:5px}.profile-assigned{display:flex;align-items:center;gap:14px;margin:12px 0;padding:15px;border-radius:16px;background:#eaeef4;color:#2E5188}.profile-assigned strong{font-size:35px}.profile-assigned span{font-size:14px}.profile-money{background:#2E5188;color:#fff;border-radius:16px;padding:17px}.profile-money small{display:block;color:#c0c8d6;font-size:11px}.profile-money strong{display:block;font-size:28px;margin-top:8px;overflow-wrap:anywhere}.profile-offices{display:grid;gap:7px;margin-top:12px;max-height:320px;overflow-y:auto;border:1px solid #e2e5e9;border-radius:15px;background:white}.profile-offices>div{padding:12px 14px;border-bottom:1px solid #edeef0;font-size:13px}.profile-offices small{display:block;font-size:10px;color:#7b8790;margin-top:4px}.profile-dialog section>h3{font-size:16px;margin:12px 0}.profile-dialog #profile-activity{width:100%;margin-top:12px}.identity #avatar{min-height:44px;min-width:44px;width:44px;height:44px;position:relative;background:transparent;border:0}.identity #avatar::before{content:'';position:absolute;inset:7px;background:#dce2ec;border-radius:50%;z-index:-1}

.identity #avatar{isolation:isolate}
.profile-kpis button{background:#fff;border:1px solid #d8dee7;border-radius:16px;padding:14px;text-align:left;min-height:110px}.profile-kpis button small{display:block;font-size:10px;color:#2E5188;margin-top:9px}.profile-kpis button:active{background:#eaeef4}.profile-dialog .ref-code{overflow-wrap:anywhere}.profile-dialog .activity-range .secondary{grid-column:1/-1}
.liquidation-amount{display:block;margin-top:6px;color:#2E5188;font-weight:700}.reference-liquidation-switch{display:flex!important;align-items:center;justify-content:space-between;gap:18px;padding:16px;background:#fff;border:1px solid #dce1e9;border-radius:17px}.reference-liquidation-switch>span{display:grid;gap:6px}.reference-liquidation-switch strong{color:#2E5188;font-size:13px}.reference-liquidation-switch small{font-size:11px;color:#718078;line-height:1.5}.reference-liquidation-switch input{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 52px;width:52px!important;height:32px;min-height:32px!important;padding:0!important;border:0!important;border-radius:20px!important;background:#d9dee2!important;cursor:pointer}.reference-liquidation-switch input::before{content:'';position:absolute;left:3px;top:3px;height:26px;width:26px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}.reference-liquidation-switch input:checked{background:#2E5188!important}.reference-liquidation-switch input:checked::before{transform:translateX(20px)}
.payment-logo{display:inline-block;position:relative;overflow:hidden;flex-shrink:0;vertical-align:middle}.payment-logo img{position:absolute;display:block;max-width:none}.reference-brand{margin:2px 0 18px;line-height:1}.reference-bank-heading{display:flex;align-items:center;min-height:24px;margin:0 0 12px!important}

.field-quick-grid,.field-time-grid,.field-supervisor-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-quick-grid button{min-height:72px;background:#edf2fa;color:#2E5188;text-align:left}.field-days{border:1px solid #dde3ef;border-radius:16px;padding:12px}.field-days label{display:flex;align-items:center;gap:10px;margin:4px 0;min-height:40px}.field-days input{width:22px!important;height:22px;min-height:22px!important;accent-color:#2E5188}.field-supervisor-kpis{margin:14px 0}.field-supervisor-kpis>div{padding:12px;background:#f1f4fa;border-radius:12px}.field-supervisor-kpis strong{display:block;font-size:28px;color:#2E5188}.field-supervisor-kpis small{display:block;font-size:11px;color:#67768d;margin-top:5px}.field-money{display:grid;gap:5px;color:#2E5188}.field-money strong{font-size:24px}.field-time-grid input{min-width:0;width:100%}

.field-dialog{width:100%;max-width:540px}.field-dialog .sheet-heading h2{min-width:0;flex:1;overflow-wrap:anywhere;font-size:23px}.field-dialog .close-button{flex:0 0 42px}.field-dialog .reference-content,.field-dialog .reference-content>*{min-width:0}.field-dialog select,.field-dialog input,.field-dialog textarea{min-width:0;max-width:100%;width:100%}.field-dialog .field-days{min-inline-size:0}.field-quick-grid,.field-time-grid,.field-supervisor-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.field-quick-grid button{overflow-wrap:anywhere}.field-dialog .agenda-form{min-width:0}.field-dialog .record-card{min-width:0;overflow-wrap:anywhere}

.field-dialog{box-sizing:border-box;width:min(540px,100vw);max-width:100vw;max-height:94dvh;overflow-x:hidden;left:0;right:0}.field-dialog .reference-content{width:100%}

.field-dialog{margin-left:max(0px,calc((100vw - 540px)/2));margin-right:0}

.field-supervisor-kpis button{padding:12px;border-radius:12px;text-align:left;background:#edf2fa;color:#2E5188;min-width:0}.field-supervisor-kpis button span{display:block;margin-top:8px;font-size:10px}.field-supervisor-kpis button:focus-visible{outline:3px solid #2E5188}.field-supervisor-kpis button:active{background:#dce5f3}
