/*
 * LEXPRO V17.79 · Escala tipográfica legible
 *
 * Esta capa se carga al final para elevar únicamente texto funcional.
 * No modifica logotipos, iconos, gráficos ni cifras principales.
 */
:root{
  --lexpro-text-sm:11.5px;
  --lexpro-text-md:12.5px;
  --lexpro-text-form:13px;
}

/* Navegación y cabecera de la aplicación jurídica. */
.app-header .client-picker-copy small,
.app-header .client-picker-copy em,
.app-header .profile-copy span,
.app-header .notification-dropdown small,
.app-header .notification-dropdown em,
.app-header .notification-dropdown button,
.app-header .notification-dropdown a,
.app-header .profile-dropdown-menu a,
.app-header .profile-dropdown-menu button{
  font-size:var(--lexpro-text-sm)!important;
}
.app-header .global-search input,
.client-selector-dialog input,
.client-selector-dialog p,
.client-selector-dialog small,
.client-selector-dialog em,
.client-selector-dialog button{
  font-size:var(--lexpro-text-md)!important;
}
.sidebar .security b,.sidebar .security small{font-size:12px!important}

/* Contenido común de Inicio, Expedientes, Clientes, Agenda y demás módulos. */
.app-shell main :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  font-size:var(--lexpro-text-form)!important;
}
.app-shell main :where(label,p){font-size:var(--lexpro-text-md)!important}
.app-shell main :where(small,time,em){font-size:var(--lexpro-text-sm)!important}
.app-shell main table th{font-size:12px!important}
.app-shell main table td{font-size:var(--lexpro-text-md)!important}
.app-shell main table td :where(small,time,em){font-size:var(--lexpro-text-sm)!important}
.app-shell main :where(button,.primary-action,.secondary-action,.open-case,.new-case,.new-client,.new-event,.new-document){
  font-size:var(--lexpro-text-md)!important;
}
.app-shell main :where(.status,.state,.badge,.tag,.risk,.person-type,.client-status,.document-status){
  font-size:var(--lexpro-text-sm)!important;
}
.app-shell main :where(.form-errors,.field-error,.helptext){
  font-size:var(--lexpro-text-sm)!important;
  line-height:1.45!important;
}

/* Textos secundarios que antes quedaban por debajo de 10 px. */
.app-shell main :where(
  .summary-row b,.summary-row small,.summary-row time,
  .alert-row b,.alert-row small,.activity-list b,.activity-list small,.activity-list time,
  .result-main b,.result-main strong,.result-main small,
  .result-meta b,.result-meta small,.result-meta em,
  .document-ai li,.version-line div,.version-line p,
  .quick-section p,.quick-section small,.preview-metadata b,
  .client-summary span,.client-360-columns small,
  .report-preview footer p,.reports-catalog footer small
){font-size:var(--lexpro-text-sm)!important}

/*
 * Panel SaaS: escala compacta propia.
 * Mantiene la legibilidad sin restar espacio a indicadores y tablas densas.
 */
.saas-sidebar nav a,.return-system{font-size:12px!important}
.saas-user b{font-size:12px!important}
.saas-user small,.platform-card small{font-size:10.5px!important}
.platform-card div{min-width:0}
.platform-card small{white-space:nowrap}
.saas-main :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  font-size:12px!important;
}
.saas-main :where(label,p){font-size:11.5px!important}
.saas-main :where(small,time,em){font-size:10.5px!important}
.saas-main table th{font-size:11px!important}
.saas-main table td{font-size:11.5px!important}
.saas-main table td :where(small,time,em){font-size:10.5px!important}
.saas-main :where(button,.primary-action,.secondary,.saas-edit-link){font-size:11.5px!important}
.saas-main :where(.state,.audit-module,.priority-badge,.ticket-status,.funnel-stage-badge,.module-tags span){
  font-size:10.5px!important;
}
.saas-main :where(
  .summary-row b,.summary-row small,.summary-row time,
  .alert-row b,.alert-row small,.activity-list b,.activity-list small,.activity-list time,
  .analytics-legend,.analytics-month,.finance-form-help,.onboarding-errors
){font-size:10.5px!important}

/* Portal del cliente. */
.portal-shell{font-size:14px}
.portal-sidebar nav a{font-size:13px!important}
.portal-main :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,button){
  font-size:var(--lexpro-text-form)!important;
}
.portal-main :where(label,p,td,dd){font-size:var(--lexpro-text-md)!important}
.portal-main :where(small,time,dt){font-size:var(--lexpro-text-sm)!important}
.portal-main table th{font-size:12px!important}
.portal-main :where(.portal-status,.portal-row-link){font-size:var(--lexpro-text-sm)!important}

/* Ingreso, recuperación y cambio obligatorio de contraseña. */
.login-form-panel :where(label,input,button),
.activation-shell :where(label,input,button),
.portal-auth :where(label,input,button){font-size:14px!important}
.login-form-panel :where(p,small,a,.field-error),
.activation-shell :where(p,small,a,.field-error),
.portal-auth :where(p,small,a,.field-error){font-size:12.5px!important;line-height:1.45}
.login-form-panel .login-options{font-size:12.5px!important}

@media(max-width:900px){
  :root{--lexpro-text-sm:11.5px;--lexpro-text-md:12px;--lexpro-text-form:13px}
}
