:root,html[data-theme=light]{--close-bg:#f2f6fa;--close-panel:#fff;--close-soft:#edf4f8;--close-text:#16364f;--close-muted:#415c71;--close-line:#bdcdd8;--close-accent:#076a79;--panel:#fff;--panel2:#edf4f8;--muted:#415c71}
html[data-theme=dark]{--close-bg:#081e30;--close-panel:#122e45;--close-soft:#193c55;--close-text:#edf5fb;--close-muted:#c1d2df;--close-line:#4a6a80;--close-accent:#79dbe6;--panel:#122e45;--panel2:#193c55;--muted:#c1d2df}
body{color:var(--close-text);background:var(--close-bg)}[hidden]{display:none!important}dialog,.detail-dialog-v3,.party-dialog{color:var(--close-text);background:var(--close-panel);border-color:var(--close-line)}dialog header,dialog .drawer-top,.detail-dialog-v3>header,.manager-v3>header,.manager-profile-head{color:var(--close-text)!important;background:var(--close-soft)!important}dialog h1,dialog h2,dialog h3,.manager-v3 h3,.manager-profile-head h4{color:var(--close-text)!important}dialog label,dialog small,.detail-summary,.manager-v3 small{color:var(--close-muted)}
body:has(#bottomNav) .app-header{min-height:56px;padding:7px 12px;gap:10px;flex-wrap:nowrap;background:var(--close-panel);color:var(--close-text)}body:has(#bottomNav) .app-header img{width:91px;height:auto;padding:0}body:has(#bottomNav) .app-header h1{font-size:18px;white-space:nowrap}body:has(#bottomNav) .app-header small{font-size:11px}.operational-clean .app-header small{display:none!important}.connection-indicator{min-height:38px!important;min-width:38px;padding:5px 8px!important;border:1px solid var(--close-line);background:var(--close-soft);color:var(--close-text);font-size:12px!important;margin-left:auto!important;flex:0 0 auto;white-space:nowrap}.connection-indicator[data-state=online]{font-size:20px!important;color:#087447}html[data-theme=dark] .connection-indicator[data-state=online]{color:#81e4ae}
.portfolio-master,.portfolio-detail,.weekly-fold,.account-card,.manager-v3,.contact-row,.document-row,.compact-promise,.more-group{color:var(--close-text)!important;background:var(--close-panel)!important;border-color:var(--close-line)!important}.account-card[aria-pressed=true]{background:var(--close-soft)!important;border-color:var(--close-accent)!important}.account-card strong,.account-card .number,.account-card .card-amount,.credit-identity strong,.summary-pair strong{color:var(--close-text)!important}.account-card .eyebrow,.account-card small,.credit-address,.summary-pair>span,.summary-context,.summary-dates,.more-group small,.fine-print{color:var(--close-muted)!important}.summary-focus,.summary-focus-value,.recovery-hero{color:#fff!important;background:#105d79!important}.summary-focus-value strong,.summary-focus-value span,.recovery-hero strong,.recovery-hero span{color:#fff!important}.summary-ledger,.summary-context,.summary-pair{background:transparent!important}.summary-pair.accessory-value strong,.gold-value strong{color:var(--close-accent)!important}
#legacyCreditSelectors{display:none!important}.more-group{border:1px solid var(--close-line);border-radius:12px;padding:13px;margin:12px 0}.more-group>h2,.more-group>summary{margin:0 0 8px;font-size:16px;font-weight:700}.more-group>button,.logout-action{min-height:44px;width:100%;margin:7px 0}.more-group>select{min-height:44px}.more-group input,.more-group select,dialog input,dialog select,dialog textarea{background:var(--close-panel);color:var(--close-text);border-color:var(--close-line)}.more-group a{display:block;color:var(--close-accent);padding:9px 0}.more-group details{margin:10px 0}.more-group .pwa-controls button{width:100%}#viewMas{min-width:0}.history-reading{min-width:0}.history-full-detail{margin-top:8px;padding:8px 0}.history-full-detail summary{cursor:pointer;font-weight:600}.clarification-current{padding:10px;border-left:3px solid var(--close-accent);background:var(--close-soft);color:var(--close-text)}.clarification-current small{color:var(--close-muted)}#history .card>strong,.compact-history h3,.promise-profile h3{font-weight:750;color:var(--close-text)}.documentary-commitment{color:var(--close-text);max-width:100%}.documentary-commitment li{padding:5px 0}.documentary-commitment details{padding:5px 0}.adaptive-cards td:before{color:var(--close-muted)!important}.contact-donut text{fill:var(--close-text)}.zero-recovery,.commission-note,.commission-chart .fine-print{color:var(--close-muted)!important}.zero-recovery{background:var(--close-soft)!important}.account-counts strong{color:inherit}.pending-button{color:#654200;background:#fff2c5;border-color:#ac8737}html[data-theme=dark] .pending-button{color:#ffe7a0;background:#473b18;border-color:#d7b666}
@media(max-width:820px){.account-cards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px;overflow-x:visible!important;max-height:none;scroll-snap-type:none!important}.account-card{flex:none!important;width:100%!important;min-width:0!important;margin:0!important}.account-card strong,.account-card .eyebrow,.account-card .number{white-space:normal;overflow-wrap:break-word;line-height:1.4}.account-card .card-amount{white-space:nowrap;font-size:17px}.portfolio-master{padding:12px}.portfolio-filters select{font-size:15px}.detail-dialog-v3>header{padding:12px}.detail-dialog-v3>header h2{font-size:17px!important;color:var(--close-text)!important}.detail-dialog-v3>header button{min-width:80px!important}.credit-identity strong{font-size:20px}.summary-focus-value strong{font-size:clamp(26px,7vw,34px)}.ficha-v3 label,body:has(#bottomNav) label{font-size:14px}.account-tabs button,.credit-tabs button{font-size:12px;min-height:44px}.manager-v3>header h3{font-size:18px}.manager-v3 .commission-metrics{gap:12px}}

/* Cuatro ajustes finales: presentación compartida, sin valores financieros fijos. */
.summary-focus{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0!important}
.summary-focus-value{min-width:0;container-type:inline-size;padding:16px!important;box-sizing:border-box}
.summary-focus-value>span{font-size:13px!important;font-weight:700;letter-spacing:.04em}
.summary-focus-value>strong{display:block;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-variant-numeric:tabular-nums;font-size:clamp(18px,6.8cqw,34px)!important;line-height:1.2!important}
@media(max-width:650px){.summary-focus{grid-template-columns:minmax(0,1fr)!important}.summary-focus-value+.summary-focus-value{border-top:1px solid #ffffff40}}
.documentary-commitment details>summary,.history-full-detail>summary{color:var(--close-text)!important;background:var(--close-soft)!important;border:1px solid var(--close-line);border-radius:8px;padding:10px 12px;cursor:pointer;font-weight:600}
.documentary-commitment details>summary:hover,.history-full-detail>summary:hover{outline:1px solid var(--close-accent)}
.documentary-commitment details>summary:focus-visible,.history-full-detail>summary:focus-visible{outline:3px solid var(--close-accent);outline-offset:2px}
.organization-actions.client-actions-final{display:flex!important;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:nowrap!important;position:relative}
.client-actions-final>button,.client-options>summary{min-height:40px!important;padding:9px 14px!important;white-space:nowrap;box-sizing:border-box}
.client-options{position:relative;margin:0!important;border:0!important;padding:0!important;background:transparent!important}
.client-options>summary{list-style:none;cursor:pointer;border:1px solid var(--close-accent);border-radius:12px;color:var(--close-text)!important;background:var(--close-soft)!important;font-weight:600}
.client-options>summary::-webkit-details-marker{display:none}
.client-options-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:190px;display:grid;gap:4px;padding:6px;border:1px solid var(--close-line);border-radius:12px;background:var(--close-panel);box-shadow:0 8px 22px #0004}
.client-options:not([open])>.client-options-menu{display:none}
.client-options-menu>button{text-align:left;white-space:nowrap;min-height:42px}
.client-list .table-wrap{overflow:visible!important}.client-list tbody td{padding-top:10px!important;padding-bottom:10px!important}
@media(max-width:650px){.client-actions-final{justify-content:flex-start!important}.client-options-menu{right:0}}

@media(max-width:700px){.client-list .adaptive-cards tbody>tr{overflow:visible!important}.client-list .adaptive-cards tbody>tr>td:first-child{border-radius:13px 13px 0 0}}
