/* Sistema Sana Tu Deuda V8.16.59 · KPIs definitivos */
#stdMetricsApp[data-std-metrics56="1"]{grid-template-columns:252px minmax(0,1fr)!important;background:#eef6fd!important}
#stdMetricsApp[data-std-metrics56="1"] .metricsSide{background:linear-gradient(180deg,#071b36 0%,#0a315d 100%)!important}
#stdMetricsApp[data-std-metrics56="1"] .metricsNav button{display:grid!important;grid-template-columns:34px minmax(0,1fr) 20px!important;align-items:center!important;gap:10px!important;position:relative!important;padding:10px 8px 10px 10px!important;min-height:50px!important}
#stdMetricsApp[data-std-metrics56="1"] .metricsNav button>.stdMetricNavIcon54{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:10px!important;background:rgba(255,255,255,.10)!important}
#stdMetricsApp[data-std-metrics56="1"] .metricsNav button.active>.stdMetricNavIcon54{background:rgba(255,255,255,.20)!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricGlyph56{display:grid!important;place-items:center!important;width:auto!important;height:auto!important;visibility:visible!important;opacity:1!important;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif!important;line-height:1!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricNavIcon54 .stdMetricGlyph56{font-size:20px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricHeading54>span .stdMetricGlyph56{font-size:25px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricHeroIcon54 .stdMetricGlyph56{font-size:31px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricCardIcon54 .stdMetricGlyph56{font-size:25px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricPanelIcon54 .stdMetricGlyph56{font-size:21px!important}
#stdMetricsApp[data-std-metrics56="1"] #stdMetricChangeAreaVisible56,
#stdMetricsApp[data-std-metrics56="1"] .stdMetricAreaSwitch56{display:none!important}
#stdMetricsApp[data-std-metrics56="1"] .metricsSideFoot{display:grid!important;margin-top:auto!important;gap:9px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricProfile54{display:block!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricHero54{display:flex!important;align-items:center!important;gap:14px!important;background:#fff!important;border:1px solid #d8e5f3!important;border-radius:16px!important;padding:15px 17px!important;margin-bottom:14px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricHeroIcon54{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;border-radius:15px!important;background:linear-gradient(135deg,#ddf4ff,#dfeaff)!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricHeroText54 h2{margin:0!important;font-size:22px!important;color:#17365f!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricsGrid54{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:12px!important;align-items:stretch!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricCard54{min-height:130px!important;padding:17px!important;display:grid!important;grid-template-rows:44px auto auto!important;align-content:center!important;justify-items:center!important;text-align:center!important;position:relative!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricCardIcon54{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:13px!important;background:linear-gradient(135deg,#dcf4ff,#dfebff)!important;margin-bottom:8px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricCard54 .label{width:100%!important;text-align:center!important;font-size:11px!important;line-height:1.25!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricCard54 .value{width:100%!important;text-align:center!important;font-size:25px!important;line-height:1.15!important;margin-top:6px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricPanel54{position:relative!important;overflow:visible!important;height:100%!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricPanel54 .metricPanelHead{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:13px 16px!important;min-height:62px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricPanel54 .metricPanelHead h2{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;margin:0!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricPanelIcon54{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:11px!important;background:linear-gradient(135deg,#e6f6ff,#e5edff)!important;flex:0 0 auto!important}
#stdMetricsApp[data-std-metrics56="1"] .metricTableWrap{width:100%!important;border:1px solid #dce7f2!important;border-radius:12px!important;overflow-x:auto!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricTable54{width:100%!important;min-width:760px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricTable54 th,
#stdMetricsApp[data-std-metrics56="1"] .stdMetricTable54 td{text-align:center!important;vertical-align:middle!important;padding:12px 10px!important;border-right:1px solid #e0e9f3!important;overflow-wrap:anywhere!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricTable54 th{background:#f0f5fb!important;color:#345575!important;font-size:11px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricTable54 th:last-child,
#stdMetricsApp[data-std-metrics56="1"] .stdMetricTable54 td:last-child{border-right:0!important}
#stdMetricsApp[data-std-metrics56="1"] .stdMetricTable54 td b{display:inline!important;text-align:center!important}
#stdMetricsApp[data-std-metrics56="1"] .metricSplit,
#stdMetricsApp[data-std-metrics56="1"] .stdMetricPanelsGrid59{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}
#stdMetricsApp[data-std-metrics56="1"] .stdPortfolioSplit54{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important}
#stdMetricsApp[data-std-metrics56="1"] .metricBarRow{display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) minmax(105px,1fr)!important;gap:12px!important;align-items:center!important}
#stdMetricsApp[data-std-metrics56="1"] .metricBarLabel,
#stdMetricsApp[data-std-metrics56="1"] .metricBarValue{text-align:center!important;justify-self:center!important;width:100%!important}
.stdMetricNavHandle59,.stdMetricCardHandle59{cursor:grab!important;touch-action:none!important;user-select:none!important;z-index:8!important}
.stdMetricNavHandle59{display:grid!important;grid-template-columns:repeat(3,3px)!important;gap:2px!important;justify-content:center!important;align-items:center!important;width:20px!important;height:26px!important;border-radius:7px!important;opacity:.68!important}
.stdMetricNavHandle59 i,.stdMetricCardHandle59 i{display:block!important;width:3px!important;height:3px!important;border-radius:50%!important;background:currentColor!important}
.stdMetricNavHandle59{color:rgba(255,255,255,.75)!important}
.stdMetricCardHandle59{position:absolute!important;top:8px!important;right:8px!important;display:grid!important;grid-template-columns:repeat(3,3px)!important;gap:2px!important;place-content:center!important;width:25px!important;height:25px!important;border-radius:8px!important;color:#6f879f!important;background:#f2f7fb!important;opacity:.72!important}
.stdMetricNavHandle59:hover,.stdMetricCardHandle59:hover{opacity:1!important}
.stdMetricDragging59{opacity:.68!important;box-shadow:0 16px 34px rgba(15,48,85,.16)!important}
@media(max-width:1100px){#stdMetricsApp[data-std-metrics56="1"] .metricSplit,#stdMetricsApp[data-std-metrics56="1"] .stdMetricPanelsGrid59{grid-template-columns:1fr!important}}

/* V10.2.6 · Salud financiera: un solo libro de movimientos, sin scroll horizontal infinito */
#stdMetricsApp[data-std-metrics56="1"] .stdHealthLedger1026{margin-top:14px!important;height:auto!important;overflow:hidden!important}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthLedgerHead1026>div:first-child p{margin:4px 0 0;color:#70859a;font-size:12px}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthLedgerHead1026 .stdMetricActions54{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthToolbar1026{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTabs1026{display:inline-grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid #d7e4f0;border-radius:12px;background:#f2f7fb}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTabs1026 button{border:0;border-radius:9px;background:transparent;color:#466580;padding:9px 13px;font:inherit;font-size:12px;font-weight:850;cursor:pointer;white-space:nowrap}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTabs1026 button b{display:inline-grid;place-items:center;min-width:24px;height:22px;margin-left:6px;padding:0 6px;border-radius:999px;background:#e1ebf5;color:#345a78;font-size:10px}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTabs1026 button.active{background:#fff;color:#0f4f78;box-shadow:0 2px 8px rgba(24,73,112,.12)}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTabs1026 button.active b{background:#dff3fb;color:#08739d}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthActiveTotal1026{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:10px;text-align:right}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthActiveTotal1026 span,#stdMetricsApp[data-std-metrics56="1"] .stdHealthActiveTotal1026 small{font-size:10px;color:#70859a;font-weight:750}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthActiveTotal1026 strong{grid-row:1/3;grid-column:2;font-size:20px;color:#123d64;font-variant-numeric:tabular-nums}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthLedgerBody1026{max-height:min(58vh,560px);overflow:auto;overscroll-behavior:contain;border-radius:12px}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTableWrap1026{overflow:visible!important;border-radius:12px!important}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026{min-width:0!important;width:100%!important;table-layout:auto!important}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 thead th{position:sticky;top:0;z-index:2;background:#f0f5fb!important}
#stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 th,#stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 td{white-space:normal!important}
@media(max-width:900px){
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthToolbar1026{align-items:stretch;flex-direction:column}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthActiveTotal1026{align-self:flex-end}
}
@media(max-width:760px){
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthLedgerHead1026{align-items:flex-start!important;flex-direction:column!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthLedgerHead1026 .stdMetricActions54{width:100%;justify-content:stretch}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthLedgerHead1026 .stdMetricActions54 button{flex:1;min-width:120px}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTabs1026{width:100%;grid-template-columns:1fr}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTabs1026 button{white-space:normal;text-align:left;display:flex;justify-content:space-between;align-items:center}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthActiveTotal1026{align-self:stretch;justify-content:end}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthLedgerBody1026{max-height:60dvh;overflow:auto;padding:2px}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTableWrap1026{border:0!important;background:transparent!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026,#stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 tbody{display:block!important;width:100%!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 colgroup,#stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 thead{display:none!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 tbody{display:grid!important;gap:10px!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 tbody tr{display:grid!important;grid-template-columns:1fr!important;border:1px solid #dce7f2!important;border-radius:12px!important;background:#fff!important;overflow:hidden!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 tbody td{display:grid!important;grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr)!important;gap:12px!important;align-items:center!important;width:auto!important;border:0!important;border-bottom:1px solid #edf2f7!important;padding:10px 12px!important;text-align:right!important;overflow-wrap:anywhere!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 tbody td:last-child{border-bottom:0!important}
  #stdMetricsApp[data-std-metrics56="1"] .stdHealthTable1026 tbody td::before{content:attr(data-label);text-align:left;color:#6a8096;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.02em}
}
