/* Espacio de lectura común: el texto crece dentro de su columna, nunca encima de la siguiente. */
body.v3-ui.vencora-refined main table td.reading-date{white-space:nowrap;overflow-wrap:normal;min-width:11ch;font-variant-numeric:tabular-nums}
body.v3-ui.vencora-refined main :is(.kpis,.kpi-grid) .kpi{display:flex;flex-direction:column;align-items:stretch;gap:8px}
body.v3-ui.vencora-refined main :is(.kpis,.kpi-grid) .kpi>b{display:flex;align-items:center;justify-content:center;min-height:64px;width:100%;text-align:center;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;grid-column:1/-1}
body.v3-ui.vencora-refined main :is(.dc-overview>div>strong,.ui-metric-value,.v3-number>b,.kpi-val){display:block;text-align:center;font-variant-numeric:tabular-nums;margin-inline:0}
body.v3-ui.vencora-refined main .v3-numbers{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));min-width:0;gap:20px}
body.v3-ui.vencora-refined main .v3-number{min-width:0}
body.v3-ui.vencora-refined main .inicio-prioridades li>a{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto);gap:16px}
body.v3-ui.vencora-refined main .inicio-prioridades li>a>span{min-width:0}
body.v3-ui.vencora-refined main .inicio-prioridades li>a>small{min-width:100px;overflow-wrap:normal;word-break:normal}
@media(max-width:700px){body.v3-ui.vencora-refined main .inicio-prioridades li>a{grid-template-columns:minmax(0,1fr);gap:8px}body.v3-ui.vencora-refined main .inicio-prioridades li>a>small{text-align:left}}
@media(max-width:1000px){body.v3-ui.vencora-refined main .v3-numbers{grid-template-columns:minmax(0,1fr);gap:16px}body.v3-ui.vencora-refined main .v3-number{border-right:0;border-bottom:1px solid var(--v-line);padding-bottom:14px}body.v3-ui.vencora-refined main .v3-number>b{text-align:center;overflow-wrap:anywhere}}
@media(max-width:1000px){body.v3-ui.vencora-refined main :is(.inicio-opciones,.inicio-acciones){grid-template-columns:minmax(0,1fr)}}
body.v3-ui.vencora-refined main .analysis-metrics strong{text-align:center}
body.v3-ui.vencora-refined main .supply-value{text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:700px){body.v3-ui.vencora-refined main #entrega.kpi-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){body.v3-ui.vencora-refined main .kpis[aria-label="Configuración del servicio"]{grid-template-columns:minmax(0,1fr)}}
@media screen and (min-width:1001px){body.v3-ui.vencora-refined main .trabajo-tabla{table-layout:auto;min-width:1800px}body.v3-ui.vencora-refined main .trabajo-tabla td{min-width:130px}body.v3-ui.vencora-refined main .trabajo-tabla td:first-child{min-width:280px}body.v3-ui.vencora-refined main .trabajo-tabla td:last-child{min-width:190px}}
@media screen and (max-width:1000px){body.v3-ui.vencora-refined main .trabajo-tabla{min-width:0!important;width:100%;table-layout:auto}}
body.v3-ui.vencora-refined main {min-width:0;}
body.v3-ui.vencora-refined main :is(.table-scroll,.table-wrap,.cuentas-table-region,.ig-tabla) {
  min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain;
}
body.v3-ui.vencora-refined main .table-scroll[tabindex]:focus-visible {outline:2px solid var(--v-focus,#426b81);outline-offset:3px;}
/* Una tabla densa se desplaza: no convertir sus columnas en tiras de letras. */
body.v3-ui.vencora-refined main table:where(:has(tr > :nth-child(3))){min-width:480px}
body.v3-ui.vencora-refined main table:where(:has(tr > :nth-child(4))){min-width:640px}
body.v3-ui.vencora-refined main table:where(:has(tr > :nth-child(7))){min-width:960px}
body.v3-ui.vencora-refined main table:where(:has(tr > :nth-child(10))){min-width:1280px}
body.v3-ui.vencora-refined main table th {
  white-space:normal; overflow-wrap:anywhere; line-height:1.5; vertical-align:bottom;
}
body.v3-ui.vencora-refined main table :is(td,th) {overflow-wrap:anywhere;}
body.v3-ui.vencora-refined main :is(.toolbar,.cuentas-toolbar,.cuentas-heading) {flex-wrap:wrap;}
body.v3-ui.vencora-refined main .cuentas-toolbar-note {flex:1 1 240px;text-align:right;line-height:1.6;}
body.v3-ui.vencora-refined main .cuentas-workspace>.cuentas-muted {padding:14px 20px;line-height:1.65;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-table {min-width:960px;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-col-name {width:25%;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-col-rut {width:13%;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-col-relation {width:14%;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-col-area {width:18%;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-col-amount {width:21%;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-col-count {width:9%;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-name>span:last-child {
  min-width:0; white-space:normal; overflow:visible; text-overflow:clip;
}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-table :is(td,th) {padding:14px 16px;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-table thead th {font-size:12px;white-space:normal;}
body.v3-ui.vencora-refined main .cuentas-workspace.director-control .cuentas-table {min-width:1260px;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-control-gap {white-space:normal;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-amounts>span {white-space:normal;}
body.v3-ui.vencora-refined main .cuentas-workspace .cuentas-amounts>span:not(.cuentas-muted) {white-space:normal;font-variant-numeric:tabular-nums;}
body.v3-ui.vencora-refined main :is(.cuentas-panel-heading,.vm-panel-head) h2 {overflow-wrap:anywhere;}
.kpi-management-access {margin:20px 0 24px;padding:18px 20px;border:1px solid var(--border);border-radius:10px;}
.kpi-management-access .btn {white-space:normal;line-height:1.5;}
.kpi-management-access p {margin:10px 0 0;max-width:85ch;}
@media(max-width:700px) {
  .crm-nav.inicio-navegacion{position:relative}
  .crm-nav.inicio-navegacion details{position:static}
  .inicio-navegacion .inicio-mas{left:0;right:auto;min-width:min(235px,100%);max-width:100%;box-sizing:border-box}
  body.v3-ui.vencora-refined main .cuentas-toolbar-note {text-align:left;flex-basis:100%;margin-left:0;}
  body.v3-ui.vencora-refined main .cuentas-workspace>.cuentas-muted {padding:12px 16px;}
}
@media print {
  body.v3-ui.vencora-refined main :is(.table-scroll,.table-wrap,.cuentas-table-region,.ig-tabla) {overflow:visible;max-height:none;}
  body.v3-ui.vencora-refined main table {min-width:0!important;width:100%;}
  body.v3-ui.vencora-refined main table :is(td,th) {font-size:9pt;padding:6pt;white-space:normal!important;}
  body.v3-ui.vencora-refined main thead {display:table-header-group;}
  body.v3-ui.vencora-refined main tr {break-inside:avoid;}
}
/* Un mismo selector en todos los espacios del CRM, incluido Clientes. */
.crm-global-area{margin:0 0 20px;padding:14px 18px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.crm-global-area form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}.crm-global-options{display:flex;gap:6px;flex-wrap:wrap}.crm-global-options button{width:auto;min-height:40px;padding:8px 14px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--text);font-size:14px}.crm-global-options button[aria-pressed=true]{background:var(--accent,#487b76);color:#fff;border-color:var(--accent,#487b76);font-weight:700}.crm-global-area span{font-size:12px;color:var(--text-2)}
@media print{.crm-global-area{display:none!important}}
body.v3-ui .crm-global-area .crm-global-options button{background:var(--v-surface,#fff)!important;color:var(--v-ink,#283340)!important;border:1px solid var(--v-line,#d5dce2)!important;box-shadow:none;font-weight:500}
body.v3-ui .crm-global-area .crm-global-options button[aria-pressed=true]{background:#e8f1f3!important;color:#174955!important;border:2px solid #426d77!important;font-weight:700;padding:7px 13px}
body.v3-ui .crm-global-area .crm-global-options button[aria-pressed=true]::before{content:'✓ ';font-weight:800}
html[data-theme=night] body.v3-ui .crm-global-area .crm-global-options button[aria-pressed=true]{background:#243f46!important;color:#e1f4f5!important;border-color:#8fbdc5!important}
/* En tablas financieras densas, conservar palabras completas y tamaño legible. */
body.v3-ui.vencora-refined main table.financial-detail{table-layout:auto;min-width:1280px}
body.v3-ui.vencora-refined main table.financial-scorecard{min-width:1460px}
body.v3-ui.vencora-refined main table.financial-detail :is(th,td){overflow-wrap:normal;word-break:normal;line-height:1.6}
body.v3-ui.vencora-refined main table.financial-detail :is(th,td):nth-child(2){min-width:260px;width:24%}
body.v3-ui.vencora-refined main table.financial-detail th:not(:nth-child(2)):not(:first-child){min-width:76px}
.financial-evaluation{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px;align-items:end}
.financial-evaluation label{display:grid;gap:6px;min-width:0}
.financial-evaluation :is(input,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.financial-evaluation button{justify-self:start;align-self:end}
@media print{body.v3-ui.vencora-refined main table.financial-detail{min-width:0!important}body.v3-ui.vencora-refined main table.financial-detail :is(th,td){min-width:0!important}}
