/* =====================================================================================
   VESPER UI — estilo ESTANDAR para paginas y formularios nuevos del CRM Inversionista
   (2026-09-02). Nace del restyle de Pago de Intereses al mockup 24.08 y es la referencia
   visual por defecto: toda pantalla/dialog nuevo debe usar estas clases en lugar de
   estilos inline o MudPaper "a mano".

   Paleta del mockup 24.08 (tema claro):
     purple #582C83 · purple2 #6E3699 · purple4 #F0EBF8 · gold #EAAA00
     bg2 #FFFFFF · bg3 #EEEBF5 · bg4 #FAF9FC · text #1A1025 · text2 #4A3A60 · text3 #8B7BA8
     border #DDD6EE · border2 #EDE9F5 · danger #C0392B/#FDECEA · info #1565C0/#E3F0FF
     warn #B8860B/#FEF9E7/#7D5A07 · success #1A7A4A/#E8F5EE/#0F4A2C

   Bloques:
     1. Pagina: raiz .vesper-ui, subtitulo, tabs
     2. KPIs .vesper-ui-kpi (barra lateral 3px + icono arriba-derecha + valor Georgia morado)
     3. Barra de filtros .vesper-ui-filtros / campo .vesper-ui-fld (label externo + control 40px radio 10px)
     4. Botones (.vesper-ui-clear, -btn-primary, -btn-danger, -btn-outline, -btn-ghost, -pay-btn)
     5. Card + MudTable .vesper-ui-tabla (thead lila, hover morado con inset), pildoras y badges
     6. Empty state
     7. Tabla HTML editable .vesper-ui-relfac
     8. Dialog .vesper-ui-dlg (header gradiente, secciones, campos readonly, total, grids; variantes -plain y -suave)
   ===================================================================================== */

/* ── 1. Pagina ── */
.vesper-ui { --vui-shadow: 0 1px 4px rgba(88,44,131,.07), 0 4px 16px rgba(88,44,131,.05); }
.vesper-ui .vesper-ui-sub { font-size: 11.5px; color: #8B7BA8; margin-top: 2px; }
.vesper-ui-titulo { font-family: Georgia, serif; color: #582C83; font-weight: 700; }

.vesper-ui-tabs { display: flex; border-bottom: 2px solid #DDD6EE; margin-bottom: 16px; }
.vesper-ui-tab {
    border: none; background: transparent; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
    color: #8B7BA8; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
    font-family: 'Segoe UI', sans-serif; transition: all .15s ease;
}
.vesper-ui-tab.activo { color: #582C83; border-bottom-color: #EAAA00; }
.vesper-ui-tab:hover { color: #582C83; }

/* ── 2. KPIs ── */
.vesper-ui-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.vesper-ui-kpis.cols3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .vesper-ui-kpis, .vesper-ui-kpis.cols3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .vesper-ui-kpis, .vesper-ui-kpis.cols3 { grid-template-columns: 1fr; } }
.vesper-ui-kpi {
    position: relative; overflow: hidden; background: #fff; border: 1px solid #DDD6EE; border-radius: 10px;
    padding: 15px 17px; box-shadow: var(--vui-shadow, 0 1px 4px rgba(88,44,131,.07)); transition: box-shadow .15s ease;
}
.vesper-ui-kpi:hover { box-shadow: 0 8px 32px rgba(88,44,131,.14); }
.vesper-ui-kpi::after { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--barra, #EAAA00); }
.vesper-ui-kpi .ico {
    position: absolute; right: 13px; top: 13px; width: 30px; height: 30px; border-radius: 8px;
    background: var(--ico-bg, #F0EBF8); display: flex; align-items: center; justify-content: center;
}
.vesper-ui-kpi .ico .mud-icon-root { font-size: 17px; color: var(--ico, #582C83); }
.vesper-ui-kpi .lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #8B7BA8; margin-bottom: 6px; padding-right: 44px; }
.vesper-ui-kpi .val { font-family: Georgia, 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #582C83; line-height: 1.1; }
.vesper-ui-kpi .val.sm { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 16px; letter-spacing: -.2px; line-height: 1.3; }
.vesper-ui-kpi .sub { font-size: 10.5px; color: #8B7BA8; margin-top: 5px; min-height: 14px; }

/* ── 3. Barra de filtros + campos con label externo ── */
.vesper-ui-filtros {
    background: #fff; border: 1px solid #DDD6EE; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
    display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; box-shadow: 0 1px 2px rgba(88,44,131,.04);
}
.vesper-ui-fld { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.vesper-ui-fld > label { font-size: 9.5px; font-weight: 800; letter-spacing: .7px; color: #8B7BA8; text-transform: uppercase; margin: 0; line-height: 1; }
.vesper-ui-fld > label .req { color: #C0392B; }
.vesper-ui-fld > label .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #8B7BA8; }
.vesper-ui-fld .mud-input-control { margin: 0; }
.vesper-ui-fld .mud-input-control-input-container { margin-top: 0; }
.vesper-ui-fld .mud-input.mud-input-outlined { border-radius: 10px; background: #fff; font-size: 13px; color: #1A1025; }
.vesper-ui-fld .mud-input-outlined-border { border-color: #DDD6EE !important; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.vesper-ui-fld .mud-input-outlined:hover .mud-input-outlined-border { border-color: #C9B8E0 !important; }
.vesper-ui-fld .mud-input-outlined:focus-within .mud-input-outlined-border { border-color: #582C83 !important; border-width: 1px; box-shadow: 0 0 0 3px #F0EBF8; }
.vesper-ui-fld .mud-input-slot, .vesper-ui-fld .mud-select-input { height: 40px; }
.vesper-ui-fld input::placeholder { color: #8B7BA8; opacity: 1; text-transform: none; }
.vesper-ui-fld .mud-input-adornment .mud-icon-root { font-size: 17px; color: #8B7BA8; transition: color .15s; }
.vesper-ui-fld .mud-input-outlined:focus-within .mud-input-adornment .mud-icon-root { color: #582C83; }
.vesper-ui-fld .mud-input-adornment-start { margin-left: 4px; }
.vesper-ui-fld .mud-select .mud-icon-root { color: #8B7BA8; }
.vesper-ui-fld .mud-input-helper-text { margin-top: 3px; font-size: 10.5px; }

/* ── 4. Botones ── */
.vesper-ui-clear {
    margin-left: auto; height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
    border-radius: 10px; border: 1px solid #DDD6EE; background: transparent; color: #4A3A60; cursor: pointer;
    font-size: 11.5px; font-weight: 600; font-family: 'Segoe UI', sans-serif; transition: all .15s ease; white-space: nowrap;
}
.vesper-ui-clear:hover { border-color: #582C83; color: #582C83; background: #F0EBF8; }
.vesper-ui-clear:active { transform: scale(.97); }

.vesper-ui-btn-primary, .vesper-ui-btn-danger, .vesper-ui-btn-outline, .vesper-ui-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 8px; font-size: 11.5px; font-weight: 600; font-family: 'Segoe UI', sans-serif;
    cursor: pointer; transition: all .15s ease; white-space: nowrap; text-transform: none; line-height: 1;
}
.vesper-ui-btn-primary { background: #582C83; color: #fff; }
.vesper-ui-btn-primary:hover { background: #6E3699; box-shadow: 0 4px 12px rgba(88,44,131,.28); }
.vesper-ui-btn-danger { background: #C0392B; color: #fff; font-weight: 700; }
.vesper-ui-btn-danger:hover { background: #A93226; box-shadow: 0 4px 12px rgba(192,57,43,.28); }
.vesper-ui-btn-outline { background: transparent; border-color: #DDD6EE; color: #4A3A60; }
.vesper-ui-btn-outline:hover { border-color: #582C83; color: #582C83; background: #F0EBF8; }
.vesper-ui-btn-ghost { background: transparent; color: #4A3A60; padding: 0 8px; }
.vesper-ui-btn-ghost:hover { background: #F0EBF8; color: #582C83; }
.vesper-ui-btn-ghost.danger { color: #C0392B; }
.vesper-ui-btn-ghost.danger:hover { background: #FDECEA; color: #C0392B; }
.vesper-ui-btn-primary:active, .vesper-ui-btn-danger:active, .vesper-ui-btn-outline:active { transform: scale(.97); }
.vesper-ui-btn-primary:disabled, .vesper-ui-btn-danger:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.vesper-ui-btn-primary.xs, .vesper-ui-btn-danger.xs, .vesper-ui-btn-outline.xs, .vesper-ui-btn-ghost.xs { height: 28px; padding: 0 11px; font-size: 11px; }
.vesper-ui-btn-primary.lg, .vesper-ui-btn-danger.lg, .vesper-ui-btn-outline.lg { height: 38px; padding: 0 24px; font-size: 12.5px; }

/* Boton de accion "positiva" en tabla (Pagar / Registrar) */
.vesper-ui-pay-btn {
    display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
    color: #0F4A2C; border: 1px solid #1A7A4A; background: #E8F5EE; cursor: pointer; white-space: nowrap;
    font-family: 'Segoe UI', sans-serif; transition: all .15s ease;
}
.vesper-ui-pay-btn:hover { background: #1A7A4A; color: #fff; box-shadow: 0 3px 9px #E8F5EE; transform: translateY(-1px); }
.vesper-ui-paid-tag {
    display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
    color: #8B7BA8; background: #EEEBF5; border: 1px solid #DDD6EE; white-space: nowrap;
}

/* ── 5. Card + MudTable ── */
.vesper-ui-card { background: #fff; border: 1px solid #DDD6EE; border-radius: 10px; overflow: hidden; box-shadow: var(--vui-shadow, 0 1px 4px rgba(88,44,131,.07)); }
.vesper-ui-card-hdr { padding: 12px 14px; border-bottom: 1px solid #DDD6EE; }
.vesper-ui-card-hdr .tit { font-weight: 600; font-size: 13px; color: #1A1025; }
.vesper-ui-card-hdr .sub { font-size: 11px; color: #4A3A60; margin-top: 2px; }
.vesper-ui-tabla .mud-table-container { overflow-x: auto; }
/* thead lila del mockup — app.css pinta las MudTable con gradiente morado + texto blanco (!important),
   por eso aqui se fuerza con la misma especificidad + !important, scoped a esta tabla. */
.vesper-ui-tabla.mud-table:not(.mud-simple-table) .mud-table-head { background: #EEEBF5 !important; }
.vesper-ui-tabla.mud-table:not(.mud-simple-table) .mud-table-head .mud-table-cell,
.vesper-ui-tabla th.mud-table-cell {
    background: #EEEBF5 !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .9px !important;
    text-transform: uppercase; color: #8B7BA8 !important; padding: 9px 12px; border-bottom: 1px solid #DDD6EE !important; white-space: nowrap;
}
.vesper-ui-tabla td.mud-table-cell { padding: 11px 12px; font-size: 12px; color: #1A1025; border-bottom: 1px solid #EDE9F5; transition: background .15s; }
.vesper-ui-tabla tbody tr:nth-child(even) td.mud-table-cell { background: rgba(127,127,127,.025); }
.vesper-ui-tabla tbody tr:last-child td.mud-table-cell { border-bottom: none; }
.vesper-ui-tabla tbody tr.mud-table-row:hover td.mud-table-cell { background: #F0EBF8 !important; }
.vesper-ui-tabla tbody tr.mud-table-row:hover td.mud-table-cell:first-child { box-shadow: inset 3px 0 0 #582C83; }
.vesper-ui-tabla .tc { text-align: center !important; }
.vesper-ui-tabla .tr { text-align: right !important; }
.vesper-ui-tabla .nw { white-space: nowrap; }
.vesper-ui-tabla .fw6 { font-weight: 600; }
.vesper-ui-tabla .mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.vesper-ui-tabla .mud-table-pagination, .vesper-ui-tabla .mud-table-pagination-toolbar { font-size: 12px; color: #4A3A60; border-top: 1px solid #DDD6EE; min-height: 50px; }
.vesper-ui-tabla .mud-table-pagination-select .mud-input { font-size: 12px; }
.vesper-ui-tabla .mud-table-pagination-actions .mud-icon-button {
    width: 28px; height: 28px; margin: 0 3px; border-radius: 7px; border: 1px solid #DDD6EE; color: #4A3A60; padding: 0; transition: all .15s;
}
.vesper-ui-tabla .mud-table-pagination-actions .mud-icon-button:not(.mud-disabled):hover { border-color: #582C83; color: #582C83; background: #F0EBF8; }

/* Pildora neutra (ej. "3 / 12") */
.vesper-ui-cuota, .vesper-ui-pill {
    display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 2px 8px; border-radius: 20px;
    font-size: 10.5px; font-weight: 700; color: #4A3A60; background: #EEEBF5; border: 1px solid #DDD6EE;
}
/* Badges de estado con punto: bs exito · bw advertencia · bd peligro · bi info · bp morado · bn neutro */
.vesper-ui-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.vesper-ui-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.vesper-ui-badge.bs { background: #E8F5EE; color: #0F4A2C; }
.vesper-ui-badge.bw { background: #FEF9E7; color: #7D5A07; }
.vesper-ui-badge.bd { background: #FDECEA; color: #8E1F14; }
.vesper-ui-badge.bi { background: #E3F0FF; color: #0D3F7A; }
.vesper-ui-badge.bp { background: #F0EBF8; color: #582C83; }
.vesper-ui-badge.bn { background: #EEEBF5; color: #4A3A60; }

/* ── 6. Empty state ── */
.vesper-ui-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 42px 20px; gap: 5px; }
.vesper-ui-empty-ico { width: 54px; height: 54px; border-radius: 14px; background: #F0EBF8; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.vesper-ui-empty-tit { font-size: 14px; font-weight: 700; color: #1A1025; }
.vesper-ui-empty-sub { font-size: 12px; color: #8B7BA8; max-width: 360px; line-height: 1.5; }

/* ── 7. Tabla HTML con edicion inline (Rel. Facturas) ── */
.vesper-ui-relfac { width: 100%; border-collapse: collapse; font-size: 12px; }
.vesper-ui-relfac thead th {
    background: #EEEBF5; font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; color: #8B7BA8; white-space: nowrap; vertical-align: middle;
    padding: 8px 10px; border-bottom: 1px solid #DDD6EE;
}
.vesper-ui-relfac thead th.grp { background: #F0EBF8; color: #582C83; }
/* Orden por cabecera (2026-09-23): th.ord clicable, flecha dorada en la columna activa */
.vesper-ui-relfac thead th.ord { cursor: pointer; user-select: none; }
.vesper-ui-relfac thead th.ord:hover, .vesper-ui-relfac thead th.ord.activo { color: #582C83; background: #F0EBF8; }
.vesper-ui-relfac thead th.ord:focus-visible { outline: 2px solid #EAAA00; outline-offset: -2px; }
.vesper-ui-relfac thead th .flecha { display: inline-block; width: 10px; font-size: 10px; color: #EAAA00; }
.vesper-ui-relfac tbody td { padding: 5px 10px; border-top: 1px solid #EDE9F5; white-space: nowrap; color: #1A1025; }
.vesper-ui-relfac tbody tr:hover td { background: #FAF9FC; }
.vesper-ui-relfac .r { text-align: right; font-variant-numeric: tabular-nums; }
.vesper-ui-relfac .c { text-align: center; }
.vesper-ui-relfac .rf-inp {
    width: 100%; min-width: 90px; border: 1px solid transparent; background: transparent;
    border-radius: 6px; padding: 4px 6px; font-size: 12px; font-family: inherit; color: #1A1025;
}
.vesper-ui-relfac .rf-inp:hover { border-color: #DDD6EE; }
.vesper-ui-relfac .rf-inp:focus { border-color: #582C83; background: #fff; outline: none; box-shadow: 0 0 0 3px #F0EBF8; }

/* ── 8. Dialog (.vesper-ui-dlg) ──
   Uso: <MudDialog Class="vesper-ui-dlg"> + <TitleContent><div class="vesper-ui-hdr">...</div></TitleContent>
   El caller abre con CloseButton=true; la X se pinta blanca sobre el header morado.
   ContentClass="vesper-ui-fondo" da el fondo lila palido (bg4) del cuerpo del mockup. */
.vesper-ui-dlg .mud-dialog-title { padding: 0; }
.vesper-ui-dlg .vesper-ui-hdr {
    background: linear-gradient(95deg, #582C83, #6E3699); padding: 16px 20px; padding-right: 56px;
    border-radius: 10px 10px 0 0;
}
.vesper-ui-dlg .vesper-ui-hdr-tit { font-family: Georgia, serif; font-size: 16px; font-weight: 700; color: #fff; }
.vesper-ui-dlg .vesper-ui-hdr-sub { font-size: 11px; color: rgba(255,255,255,.78); margin-top: 3px; }
.vesper-ui-dlg .mud-dialog-title button { color: #fff !important; background: rgba(255,255,255,.18); top: 14px; right: 14px; }
.vesper-ui-dlg .mud-dialog-title button:hover { background: rgba(255,255,255,.32); }
.vesper-ui-dlg .mud-dialog-content.vesper-ui-fondo { background: #FAF9FC; }

/* Seccion con subrayado tenue (Registrar pago) */
.vesper-ui-dlg .vesper-ui-seccion {
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 800;
    color: #582C83; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #F0EBF8;
}
.vesper-ui-dlg .vesper-ui-seccion:first-child { margin-top: 0; }
/* Seccion con barra lateral (pgi-sec del mockup) + card blanca (pgi-card) */
.vesper-ui-dlg .vesper-ui-sec {
    font-size: 11px; font-weight: 800; letter-spacing: .7px; color: #582C83; margin: 18px 0 11px;
    display: flex; align-items: center; gap: 8px; text-transform: uppercase;
}
.vesper-ui-dlg .vesper-ui-sec:first-child { margin-top: 0; }
.vesper-ui-dlg .vesper-ui-sec::before { content: ''; width: 3px; height: 13px; background: #582C83; border-radius: 2px; flex-shrink: 0; }
.vesper-ui-dlg .vesper-ui-cardsec {
    background: #fff; border: 1px solid #DDD6EE; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(88,44,131,.04);
}
.vesper-ui-dlg .vesper-ui-cardsec .sublbl {
    font-size: 9.5px; font-weight: 800; letter-spacing: .5px; color: #8B7BA8; text-transform: uppercase; margin: 0 0 9px;
}
.vesper-ui-dlg .vesper-ui-nota { font-size: 11px; color: #8B7BA8; margin-top: 8px; line-height: 1.5; }

/* Grids de campos */
.vesper-ui-dlg .vesper-ui-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
.vesper-ui-dlg .vesper-ui-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 12px; }
.vesper-ui-dlg .vesper-ui-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.vesper-ui-dlg .full  { grid-column: 1 / -1; }
.vesper-ui-dlg .span2 { grid-column: span 2; }
@media (max-width: 700px) {
    .vesper-ui-dlg .vesper-ui-grid3, .vesper-ui-dlg .vesper-ui-grid2 { grid-template-columns: 1fr; }
    .vesper-ui-dlg .span2 { grid-column: auto; }
}

/* Campo readonly como caja (pgi-ro del mockup) */
.vesper-ui-dlg .vesper-ui-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vesper-ui-dlg .vesper-ui-campo .k { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: #8B7BA8; }
.vesper-ui-dlg .vesper-ui-campo .v {
    font-size: 13px; font-weight: 600; color: #1A1025; font-variant-numeric: tabular-nums;
    background: #EEEBF5; border: 1px solid #DDD6EE; border-radius: 8px; padding: 8px 11px; min-height: 38px;
    display: flex; align-items: center; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vesper-ui-dlg .vesper-ui-campo .v.destacado { color: #582C83; font-weight: 800; font-size: 14px; }
/* Campos editables dentro del dialog: mismo look que la barra de filtros pero 38px */
.vesper-ui-dlg .vesper-ui-fld .mud-input-slot, .vesper-ui-dlg .vesper-ui-fld .mud-select-input { height: 38px; }
.vesper-ui-dlg .vesper-ui-fld .mud-input.mud-input-outlined { border-radius: 8px; font-weight: 600; }
.vesper-ui-dlg .vesper-ui-fld .mud-input-outlined-border { border-radius: 8px; }
.vesper-ui-dlg .vesper-ui-fld .vesper-date-field input { font-weight: 600; }

/* Bloque total con gradiente (pgi-total del mockup) */
.vesper-ui-dlg .vesper-ui-total {
    margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: linear-gradient(95deg, #582C83, #6E3699); border-radius: 10px; padding: 12px 18px;
}
.vesper-ui-dlg .vesper-ui-total .lbl { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.85); }
.vesper-ui-dlg .vesper-ui-total .val { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .2px; font-variant-numeric: tabular-nums; }

/* Footer */
.vesper-ui-dlg .mud-dialog-actions { padding: 14px 20px; border-top: 1px solid #EDE9F5; gap: 10px; background: #fff; }
.vesper-ui-dlg .vesper-ui-btn-cancel:hover { border-color: #582C83 !important; color: #582C83 !important; background: #F0EBF8; }

/* ── 9. KPIs & Métricas (mockup 02.09 «page-kpis») ──
   Hero card (número grande + barra vs meta + delta), stat-row (etiqueta · barra · valor),
   chips delta, tabla de reportería, filas clave/valor y tabla de evolución mensual.
   Grids de página (fuera del dialog): .vesper-ui .vesper-ui-grid2 / -grid3. */
.vesper-ui .vesper-ui-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vesper-ui .vesper-ui-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .vesper-ui .vesper-ui-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .vesper-ui .vesper-ui-grid2, .vesper-ui .vesper-ui-grid3 { grid-template-columns: 1fr; } }
.vesper-ui .mb16 { margin-bottom: 16px; }
.vesper-ui .mt16 { margin-top: 16px; }

.vesper-ui-card .vesper-ui-card-hdr .tit.serif { font-family: Georgia, 'Playfair Display', serif; font-size: 13.5px; color: #582C83; }
.vesper-ui-card-body { padding: 14px 16px; }

/* Hero */
.vesper-ui-hero { background: #fff; border: 1px solid #DDD6EE; border-radius: 10px; padding: 18px; text-align: center; box-shadow: var(--vui-shadow, 0 1px 4px rgba(88,44,131,.07)); transition: box-shadow .15s ease; }
.vesper-ui-hero:hover { box-shadow: 0 8px 32px rgba(88,44,131,.14); }
.vesper-ui-hero .lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #8B7BA8; }
.vesper-ui-hero .num { font-family: Georgia, 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: var(--num, #582C83); margin: 7px 0; line-height: 1.1; }
.vesper-ui-hero .num.sinfuente { font-size: 22px; color: #8B7BA8; font-family: 'Segoe UI', sans-serif; font-weight: 600; margin: 14px 0 12px; }
.vesper-ui-hero .prog { height: 7px; background: #EEEBF5; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.vesper-ui-hero .prog .fill { height: 100%; border-radius: 3px; background: var(--num, #582C83); transition: width .6s ease; }
.vesper-ui-hero .meta { font-size: 11px; color: #4A3A60; }
.vesper-ui-hero .meta .ok { color: #1A7A4A; font-weight: 700; }
.vesper-ui-hero .meta .ko { color: #C0392B; font-weight: 700; }
.vesper-ui-hero .vesper-ui-delta { margin-top: 8px; }

/* Chip delta */
.vesper-ui-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.vesper-ui-delta.up { background: #E8F5EE; color: #0F4A2C; }
.vesper-ui-delta.dn { background: #FDECEA; color: #7B1A14; }
.vesper-ui-delta.n  { background: #EEEBF5; color: #4A3A60; }

/* Stat-row */
.vesper-ui-stat { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EDE9F5; font-size: 12px; }
.vesper-ui-stat:last-child { border-bottom: none; }
.vesper-ui-stat .lbl { flex: 0 0 46%; color: #4A3A60; }
.vesper-ui-stat .bar { flex: 1; height: 5px; background: #EEEBF5; border-radius: 3px; overflow: hidden; }
.vesper-ui-stat .bar .fill { height: 100%; border-radius: 3px; background: var(--bar, #582C83); transition: width .6s ease; }
.vesper-ui-stat .val { flex: 0 0 82px; text-align: right; font-weight: 700; color: var(--val, #1A1025); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vesper-ui-stat .val.sinfuente { color: #8B7BA8; font-weight: 600; font-size: 10.5px; }

/* Badge «Sin fuentes» */
.vesper-ui-sinfuente { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9px; font-size: 10px; font-weight: 700; background: #EEEBF5; color: #8B7BA8; border: 1px dashed #DDD6EE; white-space: nowrap; }

/* Tabla de reportería (Embudo / Revenue por ejecutivo) */
.vesper-ui-rep-tbl { border-collapse: collapse; width: 100%; font-size: 11.5px; }
.vesper-ui-rep-tbl th { padding: 7px 8px; text-align: right; font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #582C83; background: #F0EBF8; white-space: nowrap; }
.vesper-ui-rep-tbl th:first-child { text-align: left; }
.vesper-ui-rep-tbl td { padding: 6px 8px; border-bottom: 1px solid #EEEBF5; color: #1A1025; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vesper-ui-rep-tbl td:first-child { text-align: left; }
.vesper-ui-rep-tbl td.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 11px; }
.vesper-ui-rep-tbl tr.total td { background: #FAF9FC; font-weight: 700; }
.vesper-ui-rep-tbl tr.ganadas td { background: #FAF9FC; font-weight: 700; color: #1A7A4A; }
.vesper-ui-rep-tbl tr:last-child td { border-bottom: none; }
.vesper-ui-rep-tbl .ok { color: #1A7A4A; font-weight: 700; }
.vesper-ui-rep-tbl .warn { color: #B8860B; font-weight: 700; }
.vesper-ui-rep-tbl .bad { color: #C0392B; font-weight: 700; }
.vesper-ui-rep-pie { margin-top: 10px; padding: 8px; background: #FAF9FC; border-radius: 6px; font-size: 10.5px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; color: #4A3A60; }

/* Filas clave/valor (Cross-sell · Churn · Eficiencia) */
.vesper-ui-kv { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #EEEBF5; font-size: 12px; color: #1A1025; }
.vesper-ui-kv:last-child { border-bottom: none; }
.vesper-ui-kv .v { font-weight: 700; color: var(--val, #1A1025); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vesper-ui-kv .v.p { color: #582C83; }
.vesper-ui-kv .v.g { color: #B8860B; }
.vesper-ui-kv .v.ok { color: #1A7A4A; }
.vesper-ui-kv .v.bad { color: #C0392B; }
.vesper-ui-kv-nota { margin-top: 8px; padding: 6px; background: #FAF9FC; border-radius: 6px; font-size: 10px; text-align: center; color: #4A3A60; }
.vesper-ui-kv-big { text-align: center; margin-bottom: 10px; }
.vesper-ui-kv-big .n { font-size: 28px; font-weight: 700; color: var(--val, #C0392B); line-height: 1.1; }
.vesper-ui-kv-big .s { font-size: 10px; color: #8B7BA8; }
.vesper-ui-kv-foot { margin-top: 6px; font-size: 10px; color: #8B7BA8; }

/* Evolución mensual */
.vesper-ui-evo { border-collapse: collapse; width: 100%; font-size: 11px; }
.vesper-ui-evo thead th { background: #582C83; color: #fff; padding: 8px; text-align: right; font-weight: 600; white-space: nowrap; }
.vesper-ui-evo thead th:first-child { text-align: left; }
.vesper-ui-evo thead th.actual { color: #EAAA00; font-weight: 700; }
.vesper-ui-evo td { padding: 6px 8px; border-bottom: 1px solid #EEEBF5; text-align: right; color: #1A1025; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vesper-ui-evo td:first-child { text-align: left; font-weight: 600; }
.vesper-ui-evo td.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.vesper-ui-evo td.actual { font-weight: 700; }
.vesper-ui-evo td.futuro { color: #8B7BA8; }
.vesper-ui-evo tr:last-child td { border-bottom: none; }

/* ── 10. Select nativo inline en tablas (Configuracion > Usuarios: Rol / Estado, mockup 02.09) ── */
.vesper-usr-select {
    width: 100%; min-width: 150px; padding: 7px 30px 7px 10px; font-size: 12px; font-weight: 600; letter-spacing: .3px;
    color: #1A1025; background: #fff; border: 1px solid #DDD6EE; border-radius: 8px; cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B7BA8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat; background-position: right 10px center; transition: border-color .15s, box-shadow .15s;
}
.vesper-usr-select:hover { border-color: #C9B8E0; }
.vesper-usr-select:focus { outline: none; border-color: #582C83; box-shadow: 0 0 0 3px #F0EBF8; }
.vesper-usr-select:disabled { opacity: .55; cursor: wait; }
.vesper-usr-select.activo { color: #1A7A4A; background-color: #E8F5EE; border-color: #BFE3CE; }
.vesper-usr-select.inactivo { color: #8B7BA8; background-color: #EEEBF5; }

/* ── 11. Encabezado de grupo plegable en sidebars internos (Configuracion, mockup 02.09) ──
   <div class="vesper-ui-side-grupo [--contraido]" role="button"><span class="...-label">EQUIPO</span><MudIcon class="...-chev"/></div>
   El chevron gira segun el estado; en modo mini del sidebar el encabezado se vuelve separador (ver pagina). */
.vesper-ui-side-grupo {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    margin-top: 6px; padding: 8px 10px 4px 12px; border-radius: 6px; cursor: pointer; user-select: none;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #582C83;
    transition: background-color .15s;
}
.vesper-ui-side-grupo:hover { background: #F0EBF8; }
.vesper-ui-side-grupo:focus-visible { outline: 2px solid #EAAA00; outline-offset: -2px; }
.vesper-ui-side-grupo-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vesper-ui-side-grupo-chev { flex: 0 0 auto; color: #8B7BA8; transition: transform .18s; }
.vesper-ui-side-grupo--contraido { color: #8B7BA8; }
.vesper-ui-side-grupo--contraido .vesper-ui-side-grupo-chev { color: #8B7BA8; }

/* ── Acciones por fila como iconos (mockup 02.09 «fi-acc»: File de Inversionista) ──
   Cinco acciones por fila no caben como botones con texto; van como glifos (emoji) y la
   explicacion vive en el title. El color se pasa inline por accion. ── */
.vesper-ui-acc {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 3px 5px; min-width: 26px; height: 26px; font-size: 14px; line-height: 1;
    background: transparent; border: 0; border-radius: 6px; cursor: pointer; vertical-align: middle;
    transition: background .15s, transform .1s;
}
.vesper-ui-acc:hover { background: #EEEBF5; }
.vesper-ui-acc:active { transform: scale(.94); }
.vesper-ui-acc:focus-visible { outline: 2px solid #EAAA00; outline-offset: 1px; }
.vesper-ui-acc:disabled { opacity: .35; cursor: not-allowed; background: transparent; transform: none; }
/* Aviso rojo del modal «Registrar no renovacion» (mockup) */
.vesper-ui-dlg .vesper-ui-aviso-rojo {
    margin-top: 6px; padding: 12px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 10px;
    font-size: 12px; color: #991b1b; line-height: 1.5;
}
.vesper-ui-dlg .vesper-ui-aviso-lila {
    margin-top: 6px; padding: 12px; background: #F0EBF8; border: 1px solid #DDD6EE; border-radius: 10px;
    font-size: 12px; color: #582C83; line-height: 1.5;
}

/* ── 12. Chips de filtro, avatar y acciones con icono (Directorio Interno / Externo, 2026-09-11) ──
   .vesper-ui-chips  : fila de pildoras de filtro en vivo; .activo = morado solido.
   .vesper-ui-avatar : circulo 32px con inicial (fondo lila #F0EBF8 + letra morada), reemplaza al avatar morado solido.
   .vesper-ui-acc-ico: boton de accion 32x32 con MudIcon dentro (variante de .vesper-ui-acc, que es para glifos emoji);
                       el color va inline por accion, hover lila, disabled atenuado.
   .vesper-ui-accs   : contenedor nowrap de acciones por fila. */
.vesper-ui-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vesper-ui-chip {
    display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 20px;
    border: 1px solid #DDD6EE; background: #fff; color: #4A3A60; font-size: 11.5px; font-weight: 600;
    font-family: 'Segoe UI', sans-serif; cursor: pointer; white-space: nowrap; transition: all .15s ease;
}
.vesper-ui-chip:hover { border-color: #582C83; color: #582C83; background: #F0EBF8; }
.vesper-ui-chip.activo { background: #582C83; border-color: #582C83; color: #fff; }
.vesper-ui-chip .cnt { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; background: #EEEBF5; color: #582C83; }
.vesper-ui-chip.activo .cnt { background: rgba(255,255,255,.22); color: #fff; }
.vesper-ui-chip:focus-visible { outline: 2px solid #EAAA00; outline-offset: 1px; }

.vesper-ui-avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 50%; background: #F0EBF8; color: #582C83;
    font-family: Georgia, serif; font-weight: 700; font-size: 14px; border: 1px solid #DDD6EE;
}
.vesper-ui-avatar-row { display: flex; align-items: center; gap: 10px; }

.vesper-ui-accs { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.vesper-ui-acc-ico {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    background: transparent; border: 0; border-radius: 8px; cursor: pointer; vertical-align: middle;
    color: #4A3A60; transition: background .15s, transform .1s;
}
.vesper-ui-acc-ico .mud-icon-root { font-size: 18px; color: inherit; }
.vesper-ui-acc-ico:hover { background: #F0EBF8; }
.vesper-ui-acc-ico.danger:hover { background: #FDECEA; }
.vesper-ui-acc-ico:active { transform: scale(.94); }
.vesper-ui-acc-ico:focus-visible { outline: 2px solid #EAAA00; outline-offset: 1px; }
.vesper-ui-acc-ico:disabled { opacity: .35; cursor: not-allowed; background: transparent; transform: none; }
/* Variante «carpeta» (Pago de Intereses 2026-09-14): fondo amarillo tipo folder + icono dorado oscuro. */
.vesper-ui-acc-ico.folder { background: #FFE58A; color: #B8860B; border: 1px solid #F0C94A; }
.vesper-ui-acc-ico.folder:hover { background: #FFD84D; }

/* Contador junto a la barra de filtros («12 contactos») */
.vesper-ui-contador { font-size: 12px; font-weight: 600; color: #8B7BA8; white-space: nowrap; align-self: center; padding-bottom: 10px; }

/* ============================================================
   13. Paginador estándar (2026-09-11) — default 10 por página.
   Uso: <div class="vesper-ui-pager"><span class="info">Mostrando a–b de N</span>
        <div class="ctl"> MudSelect (tamaño) + MudPagination </div></div>
   Estado en la página: _pagina=1, _tamanoPagina=10, TamanosPagina {10,25,50,100},
   propiedades TotalPaginas y Pagina (Skip/Take con clamp) — patrón de Operaciones.razor.
   ============================================================ */
.vesper-ui-pager {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 14px; border-top: 1px solid #DDD6EE; background: #FBFAFD;
}
.vesper-ui-pager .info { font-size: 12px; color: #7a6f92; }
.vesper-ui-pager .ctl { display: flex; align-items: center; gap: 12px; }
.vesper-ui-pager .mud-input-slot, .vesper-ui-pager .mud-select-input { height: 32px; font-size: 12px; }

/* ── 9. Editor de la ficha KYC del inversionista (DialogProspectoWealth en MODO FICHA, 2026-09-16) ──
   El dialog lleva las clases vesper-prosp-dlg + vesper-ui-dlg + vesper-ficha-dlg: el header claro del
   prospecto se reemplaza por el gradiente estandar y la tabbar de MudTabs se oculta (la barra de 5
   pestañas es .vesper-ui-tabs propia). Tres clases para que ganen a las del <style> del dialog. */
.vesper-ui-dlg.vesper-ficha-dlg .mud-dialog-title {
    background: linear-gradient(95deg, #582C83, #6E3699); border-bottom: 0; padding: 0;
}
.vesper-ui-dlg.vesper-ficha-dlg .vesper-ui-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.vesper-ui-dlg.vesper-ficha-dlg .vesper-ui-hdr-sub b { color: #EAAA00; font-weight: 800; }
.vesper-ficha-hdr-estado { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 2px; }
.vesper-ficha-hdr-estado .ver { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.vesper-ui-dlg.vesper-ficha-dlg .vesper-prosp-tabs .mud-tabs-tabbar { display: none; }
.vesper-ui-dlg.vesper-ficha-dlg .vesper-ficha-tabs { margin-bottom: 6px; }
/* El wrapper de grupo es transparente para el MudGrid (display:contents) u oculto (display:none). */
.vesper-ficha-grupo { display: contents; }

/* Pestañas con numero en circulo + punto de error */
.vesper-ui-tab .n {
    display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center;
    background: #EEEBF5; color: #8B7BA8; font-size: 10.5px; font-weight: 800; margin-right: 7px; vertical-align: -3px;
}
.vesper-ui-tab.activo .n { background: #582C83; color: #fff; }
.vesper-ui-tab.con-error { color: #C0392B; }
.vesper-ui-tab.con-error .n { background: #FDECEA; color: #C0392B; }
.vesper-ui-tab .err-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #C0392B;
    margin-left: 6px; vertical-align: 1px; box-shadow: 0 0 0 2px #FDECEA;
}

/* Campo bloqueado (identidad del maestro): caja gris con candado a la derecha */
.vesper-ui-dlg .vesper-ui-campo.bloqueado .v {
    position: relative; background: #EEEBF5; color: #4A3A60; padding-right: 32px; cursor: not-allowed;
}
.vesper-ui-dlg .vesper-ui-campo.bloqueado .v .mud-icon-root {
    position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 15px; width: 15px; height: 15px; color: #8B7BA8;
}
.vesper-ui-dlg .vesper-ui-campo.bloqueado .k::after { content: ' · no editable'; font-weight: 600; letter-spacing: 0; text-transform: none; color: #8B7BA8; }

/* Perfil del Inversionista en la ficha: respondida = snapshot bloqueado; vacia = pendiente (dorado) */
.vesper-perfil-q.bloqueada { background: #FAF9FC; border-color: #EDE9F5; }
.vesper-perfil-q.bloqueada .q-titulo { color: #8B7BA8; }
.vesper-perfil-q.bloqueada .q-opt, .vesper-perfil-q.bloqueada .q-opt input { cursor: not-allowed; }
.vesper-perfil-q.bloqueada .q-opt:hover { background: transparent; }
.vesper-perfil-q.bloqueada .q-opt.activa { background: #EEEBF5; color: #4A3A60; }
.vesper-perfil-q.pendiente { border-color: #EAAA00; background: #FFFDF5; box-shadow: inset 3px 0 0 #EAAA00; }
.vesper-perfil-q .q-tag {
    display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 20px; font-size: 10px; font-weight: 700;
    letter-spacing: .3px; vertical-align: 1px;
}
.vesper-perfil-q .q-tag.lock { background: #EEEBF5; color: #8B7BA8; }
.vesper-perfil-q .q-tag.pend { background: #FEF9E7; color: #7D5A07; }

/* Pie del editor: nota de ultima actualizacion a la izquierda + motivo + botones */
.vesper-ui-dlg.vesper-ficha-dlg .mud-dialog-actions { display: flex; align-items: center; gap: 10px; }
.vesper-ficha-pie-nota { flex: 1; min-width: 0; font-size: 11px; color: #8B7BA8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vesper-ficha-pie-nota b { color: #4A3A60; font-weight: 700; }
.vesper-ficha-pie-nota .sep { color: #EAAA00; margin: 0 6px; }
.vesper-ficha-pie-motivo { width: 300px; flex-shrink: 0; }
.vesper-ficha-pie-motivo .mud-input-slot { height: 36px; }

/* =====================================================================================
   14. META / REAL (docs/PLAN-META-REAL.md) — tarjetas Meta vs Real, avance por asesor,
       grafico de tendencia (SVG) y tabla anual con primera columna fija.
   ===================================================================================== */
.vesper-ui .vesper-ui-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .vesper-ui .vesper-ui-grid4 { grid-template-columns: repeat(2, 1fr); } }
.vesper-ui .vesper-ui-grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1400px) { .vesper-ui .vesper-ui-grid5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .vesper-ui .vesper-ui-grid5 { grid-template-columns: repeat(2, 1fr); } }
/* Renovaciones del mes (docs/PLAN-NNM-RENOVACIONES.md): 4 cifras en linea */
.vesper-ui-renov { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vesper-ui-renov > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-left: 3px solid #DDD6EE; }
.vesper-ui-renov .k { font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #8B7BA8; }
.vesper-ui-renov .v { font-size: 18px; font-weight: 700; color: #582C83; font-variant-numeric: tabular-nums; }
.vesper-ui-renov .v.ok { color: #1A7A4A; } .vesper-ui-renov .v.bad { color: #C0392B; } .vesper-ui-renov .v.grande { font-size: 22px; }
.vesper-ui-renov .n { font-size: 11px; color: #4A3A60; }
@media (max-width: 900px) { .vesper-ui-renov { grid-template-columns: repeat(2, 1fr); } }

.vesper-ui-mr { background: #fff; border: 1px solid #DDD6EE; border-radius: 10px; padding: 16px 18px; box-shadow: var(--vui-shadow, 0 1px 4px rgba(88,44,131,.07)); transition: box-shadow .15s ease; }
.vesper-ui-mr:hover { box-shadow: 0 8px 32px rgba(88,44,131,.14); }
.vesper-ui-mr .tit { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #8B7BA8; margin-bottom: 10px; }
.vesper-ui-mr .row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; font-size: 12.5px; color: #4A3A60; }
.vesper-ui-mr .row .v { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; font-size: 14px; color: #582C83; font-variant-numeric: tabular-nums; }
.vesper-ui-mr .row .v.real { color: var(--sem, #582C83); }
.vesper-ui-mr .row .v.nometa { color: #8B7BA8; font-weight: 600; font-family: 'Segoe UI', sans-serif; font-size: 12px; }
.vesper-ui-mr .prog { height: 6px; background: #EEEBF5; border-radius: 3px; overflow: hidden; margin: 10px 0 8px; }
.vesper-ui-mr .prog .fill { height: 100%; border-radius: 3px; background: var(--sem, #8B7BA8); transition: width .6s ease; }
.vesper-ui-mr .pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; }
.vesper-ui-mr .pie .txt { font-size: 10.5px; color: #8B7BA8; text-align: right; }
.vesper-ui-mr .pct { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: var(--sembg, #EEEBF5); color: var(--semfg, #4A3A60); white-space: nowrap; }

/* Semaforo unico (>=100 verde · >=80 ambar · <80 rojo · sin meta gris) */
.vesper-ui .sem-verde  { --sem: #1A7A4A; --sembg: #E8F5EE; --semfg: #0F4A2C; }
.vesper-ui .sem-ambar  { --sem: #EAAA00; --sembg: #FEF9E7; --semfg: #7D5A07; }
.vesper-ui .sem-rojo   { --sem: #C0392B; --sembg: #FDECEA; --semfg: #8E1F14; }
.vesper-ui .sem-sinmeta{ --sem: #8B7BA8; --sembg: #EEEBF5; --semfg: #4A3A60; }

/* Barra de avance dentro de una celda de tabla */
.vesper-ui-avance { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.vesper-ui-avance .bar { flex: 1; height: 6px; background: #EEEBF5; border-radius: 3px; overflow: hidden; }
.vesper-ui-avance .bar .fill { height: 100%; border-radius: 3px; background: var(--sem, #8B7BA8); }
.vesper-ui-avance .n { font-size: 11px; font-weight: 700; color: var(--semfg, #4A3A60); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.vesper-ui-rep-tbl.izq th, .vesper-ui-rep-tbl.izq td { padding: 9px 10px; }
.vesper-ui-rep-tbl .tc { text-align: center; }
.vesper-ui-rep-tbl .tl { text-align: left; }
.vesper-ui-rep-tbl .fallback { font-size: 9.5px; color: #8B7BA8; font-weight: 400; margin-left: 4px; }

/* Grafico de tendencia (SVG inline, sin JS) */
.vesper-ui-trend { width: 100%; height: 190px; display: block; }
.vesper-ui-trend .grid { stroke: #EEEBF5; stroke-width: 1; }
.vesper-ui-trend .eje { font-size: 9.5px; fill: #8B7BA8; font-family: 'Segoe UI', sans-serif; }
.vesper-ui-trend .meta { fill: none; stroke: #582C83; stroke-width: 1.5; stroke-dasharray: 5 3; }
.vesper-ui-trend .real { fill: none; stroke: #EAAA00; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.vesper-ui-trend .area { fill: rgba(234,170,0,.12); stroke: none; }
.vesper-ui-trend .hit { fill: transparent; }
.vesper-ui-trend .hit:hover { fill: rgba(88,44,131,.06); }
.vesper-ui-trend-ley { display: flex; justify-content: center; gap: 18px; font-size: 10.5px; color: #4A3A60; margin-bottom: 4px; }
.vesper-ui-trend-ley span::before { content: ''; display: inline-block; width: 16px; height: 0; border-top: 2.5px solid #EAAA00; vertical-align: middle; margin-right: 6px; }
.vesper-ui-trend-ley span.m::before { border-top: 1.5px dashed #582C83; }

/* Tabla anual Ene..Dic + Total: primera columna fija, secciones lila */
.vesper-ui-anual { border-collapse: collapse; width: 100%; font-size: 11px; }
.vesper-ui-anual th { padding: 7px 8px; text-align: right; font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #582C83; background: #F0EBF8; white-space: nowrap; }
.vesper-ui-anual th:first-child { text-align: left; min-width: 190px; position: sticky; left: 0; z-index: 2; }
.vesper-ui-anual th.actual { background: #EAAA00; color: #1A1025; }
.vesper-ui-anual th.tot { background: #582C83; color: #fff; }
.vesper-ui-anual td { padding: 5px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid #EEEBF5; color: #1A1025; font-variant-numeric: tabular-nums; }
.vesper-ui-anual td:first-child { text-align: left; font-weight: 500; position: sticky; left: 0; background: #fff; z-index: 1; }
.vesper-ui-anual td.tot { font-weight: 700; background: #FAF9FC; }
.vesper-ui-anual td.vacio { color: #C9B8E0; }
.vesper-ui-anual tr.seccion td, .vesper-ui-anual tr.seccion td:first-child { background: #F0EBF8; font-weight: 700; color: #582C83; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #DDD6EE; }
.vesper-ui-anual tr.sub td:first-child { padding-left: 20px; color: #4A3A60; font-weight: 400; }
.vesper-ui-anual tr.tenue td { color: #8B7BA8; }
.vesper-ui-anual tr.tenue td:first-child { padding-left: 20px; }
.vesper-ui-anual tr.meta td { color: #8B7BA8; font-style: italic; }
.vesper-ui-anual tr.total td, .vesper-ui-anual tr.total td:first-child { font-weight: 700; color: #582C83; background: #FAF7FD; }
.vesper-ui-anual tr.cumpl td { font-weight: 700; }
.vesper-ui-anual tr.comp td:first-child { padding-left: 20px; color: #8B7BA8; font-weight: 400; }
.vesper-ui-anual .ok { color: #1A7A4A; } .vesper-ui-anual .warn { color: #B8860B; } .vesper-ui-anual .bad { color: #C0392B; }
.vesper-ui-anual .up { color: #1A7A4A; font-weight: 600; } .vesper-ui-anual .dn { color: #C0392B; font-weight: 600; }
.vesper-ui-anual .neg { color: #C0392B; }
.vesper-ui-rep-tbl td.dn { color: #C0392B; font-weight: 600; }
.vesper-ui-activos { font-size: 11px; color: #8B7BA8; margin: -4px 0 10px; }
.vesper-ui-activos b { color: #4A3A60; }

/* =====================================================================================
   15. ACTIVIDADES & SEGUIMIENTOS (mockup 02.09 page-actividades) — bloque Eisenhower,
       cards Pendientes / Historial e item (punto · TIPO — Empresa · desc · ↳ paso · fecha · asesor).
   ===================================================================================== */
.vesper-ui .mb14 { margin-bottom: 14px; }
.vesper-ui-act.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .vesper-ui-act.g2 { grid-template-columns: 1fr; } }
.vesper-ui-act .hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vesper-ui-act .hdr .tit { display: flex; align-items: center; gap: 8px; }
.vesper-ui-act .tit.serif, .vesper-ui-card-hdr .tit.serif { font-family: Georgia, serif; font-size: 13.5px; font-weight: 600; color: #582C83; }
.vesper-ui-act .vacio { font-size: 12px; color: #8B7BA8; margin: 4px 0; }
.vesper-ui-act .item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #EEEBF5; }
.vesper-ui-act .item:last-child { border-bottom: 0; }
.vesper-ui-act .item.link { cursor: pointer; }
.vesper-ui-act .item.link:hover .tit { color: #582C83; }
.vesper-ui-act .dot { width: 8px; height: 8px; border-radius: 50%; background: #B8860B; margin-top: 6px; flex: none; }
.vesper-ui-act .dot.gold { background: #B8860B; } .vesper-ui-act .dot.ok { background: #1A7A4A; } .vesper-ui-act .dot.off { background: #C9B8E0; }
.vesper-ui-act .cuerpo { flex: 1; min-width: 0; }
.vesper-ui-act .cuerpo .tit { font-size: 13px; font-weight: 700; color: #1A1025; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vesper-ui-act .cuerpo .desc { font-size: 12px; color: #4A3A60; margin-top: 2px; }
.vesper-ui-act .cuerpo .sig { font-size: 12px; color: #B8860B; margin-top: 2px; font-weight: 600; }
.vesper-ui-act .cuerpo .meta { font-size: 11px; color: #8B7BA8; margin-top: 3px; }
.vesper-ui-act .lnk { color: #1565C0; font-weight: 600; }
.vesper-ui-act .est { color: #fff; font-weight: 600; font-size: 10px; padding: 1px 6px; border-radius: 8px; white-space: nowrap; }
.vesper-ui-act .acc { display: flex; flex-direction: column; gap: 4px; flex: none; }
.vesper-ui-act .acc .vesper-ui-btn-outline.xs { width: 30px; padding: 0; justify-content: center; }
.vesper-ui-act .hdr.plegable { cursor: pointer; user-select: none; }
.vesper-ui-act .hdr.plegable:hover .tit { color: #6E3699; }
.vesper-ui-act .hdr .chev { font-size: 12px; color: #8B7BA8; width: 12px; display: inline-block; }

/* Dialog «plain» (modal del mockup sin header morado): título Georgia morado + subtítulo gris + X gris.
   Se combina con .vesper-ui-dlg para heredar grids, .vesper-ui-fld y alturas de campo.
   OJO: app.css pinta TODO .mud-dialog .mud-dialog-title con gradiente morado, texto blanco !important y la X
   translúcida; aquí se anula con más especificidad (.mud-dialog + 2 clases). */
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .mud-dialog-title { background: #fff; color: #582C83 !important; padding: 20px 24px 4px; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .vesper-ui-hdr { background: none; padding: 0; padding-right: 56px; border-radius: 0; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .vesper-ui-hdr-tit { font-size: 18px; color: #582C83; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .vesper-ui-hdr-sub { color: #8B7BA8; font-size: 12px; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .mud-dialog-title button {
    color: #4A3A60 !important; background: #EEEBF5; border: 1px solid #E4DEF0; border-radius: 8px; top: 18px; right: 20px;
}
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .mud-dialog-title button:hover { background: #DDD6EE; border-color: #DDD6EE; color: #582C83 !important; transform: none; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .mud-dialog-content { padding: 12px 24px 18px; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .mud-dialog-actions { padding: 12px 0 18px; margin: 0 24px; border-top: 1px solid #EEEBF5; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .vesper-ui-grid2 { gap: 14px 16px; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-plain .vesper-ui-fld > label { font-size: 10.5px; color: #4A3A60; }

/* Dialog «suave» (2026-09-23, pedido de Rolando en Registrar pago): mismo esqueleto que .vesper-ui-dlg pero SIN
   morado sólido. Header lila muy claro con título Georgia morado + subtítulo gris (como .vesper-ui-actadlg) y el
   bloque «Total» en lila pálido con el valor en morado. Secciones, campos readonly y botones no cambian.
   Uso: <MudDialog Class="vesper-ui-dlg vesper-ui-dlg-suave">. Misma anulación de app.css que .vesper-ui-dlg-plain. */
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .mud-dialog-title { padding: 0; background: #F7F4FB; color: #582C83 !important; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .vesper-ui-hdr {
    background: #F7F4FB; padding: 16px 20px; padding-right: 56px; border-radius: 10px 10px 0 0; border-bottom: 1px solid #DDD6EE;
}
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .vesper-ui-hdr-tit { color: #582C83; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .vesper-ui-hdr-sub { color: #8B7BA8; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .mud-dialog-title button { color: #4A3A60 !important; background: #EEEBF5; border-color: #DDD6EE; top: 12px; right: 12px; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .mud-dialog-title button:hover { background: #FDECEA; color: #C0392B !important; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .vesper-ui-total { background: #F0EBF8; border: 1px solid #DDD6EE; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .vesper-ui-total .lbl { color: #8B7BA8; }
.mud-dialog.vesper-ui-dlg.vesper-ui-dlg-suave .vesper-ui-total .val { color: #582C83; }
/* Variante hermana para dialogs que usan el TÍTULO NATIVO de MudBlazor (string en ShowAsync, sin .vesper-ui-hdr),
   p.ej. Detalle de operación / Cuotas pagadas del File (2026-09-23). Mismo look: lila muy claro, Georgia morado, X gris.
   Uso: <MudDialog Class="... vesper-ui-title-suave">. */
.mud-dialog.vesper-ui-title-suave .mud-dialog-title {
    background: #F7F4FB; color: #582C83 !important; border-bottom: 1px solid #DDD6EE;
    font-family: Georgia, serif; font-size: 16px; font-weight: 700; padding: 16px 56px 14px 20px;
}
.mud-dialog.vesper-ui-title-suave .mud-dialog-title .mud-typography { color: #582C83 !important; }
.mud-dialog.vesper-ui-title-suave .mud-dialog-title button { color: #4A3A60 !important; background: #EEEBF5; border-color: #DDD6EE; top: 12px; right: 12px; }
.mud-dialog.vesper-ui-title-suave .mud-dialog-title button:hover { background: #FDECEA; color: #C0392B !important; }
/* Controles parejos (40px). MudBlazor da al input `height` + padding vertical (content-box): sin border-box el
   campo salía de ~60px y el de fecha (MudField) aún más. Se fija el alto en border-box y se quita el padding vertical. */
.vesper-ui-dlg .vesper-ui-fld .mud-input-slot, .vesper-ui-dlg .vesper-ui-fld .mud-select-input {
    height: 40px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: 40px;
}
.vesper-ui-dlg .vesper-ui-fld .mud-input.mud-input-outlined { padding: 0; }
.vesper-ui-dlg .vesper-ui-fld .vesper-date-field .mud-input-slot { display: flex; align-items: center; }
.vesper-ui-dlg .vesper-ui-fld .vesper-date-field input { height: 100%; box-sizing: border-box; line-height: normal; }
.vesper-ui-dlg .vesper-ui-fld .vesper-ui-area .mud-input-slot, .vesper-ui-dlg .vesper-ui-fld textarea.mud-input-slot {
    height: auto; min-height: 84px; line-height: 1.45; padding-top: 10px; padding-bottom: 10px;
}
/* MudSelect dentro de .vesper-ui-fld del dialog (Registrar Actividad). En MudBlazor 9 `.mud-select-input` es el
   CONTENEDOR (.mud-input) y el valor va dentro como <input> o como <div> (ítem con ícono): se fija el contenedor a
   40px y se centra el hijo con flex, sin alturas en el hijo. */
.vesper-ui-dlg .vesper-ui-fld .mud-select .mud-select-input {
    display: flex !important; align-items: center; height: 40px !important; min-height: 40px; box-sizing: border-box; padding: 0 !important;
}
.vesper-ui-dlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-slot {
    height: auto !important; min-height: 0; margin: 0 !important; padding: 0 40px 0 14px !important; line-height: 1.3 !important;
    display: flex; align-items: center; flex: 1; box-sizing: border-box;
}
.vesper-ui-dlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-slot > div { display: flex; align-items: center; }
.vesper-ui-dlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-adornment,
.vesper-ui-dlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-adornment-end { align-self: center; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; }
.vesper-ui-dlg .vesper-ui-fld .mud-select .mud-select-input { position: relative; }

/* ── 16. Comités & Acuerdos (mockup 02.09 «page-comites-acuerdos» + «modalNuevaActa», 2026-09-21) ──
   Pagina: .vesper-ui-cta-* · Dialog Nueva/Editar acta: .vesper-ui-actadlg (header blanco + tabs con fondo lila,
   panes con h4 uppercase, filas .acta-row con borde morado, boton X rojo, «+ Agregar» punteado, quorum-box). */
.vesper-ui-cta-hdr { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vesper-ui-cta-tit { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: #582C83; display: flex; align-items: center; gap: 8px; }
.vesper-ui-cta-tit .diag-accent { width: 4px; height: 18px; background: #EAAA00; border-radius: 2px; display: inline-block; }
.vesper-ui-cta-acciones { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vesper-ui-cta-input, .vesper-ui-cta-select {
    padding: 6px 10px; border: 1px solid #DDD6EE; border-radius: 8px; font-size: 12px; font-family: 'Segoe UI', sans-serif;
    background: #fff; color: #1A1025; box-sizing: border-box; height: 32px; text-transform: none;
}
.vesper-ui-cta-input { width: 280px; }
.vesper-ui-cta-input:focus, .vesper-ui-cta-select:focus { outline: none; border-color: #582C83; box-shadow: 0 0 0 3px rgba(88,44,131,.1); }
.vesper-ui-cta-btn { height: 30px; padding: 0 11px; font-size: 11.5px; }
.vesper-ui-cta-alertas { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.vesper-ui-cta-alerta { padding: 10px 14px; border-radius: 6px; font-size: 12px; border-left: 4px solid; }
.vesper-ui-cta-alerta.danger { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
.vesper-ui-cta-alerta.warn { background: #fffbeb; border-color: #d97706; color: #78350f; }
.vesper-ui-cta-tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid #DDD6EE; margin-bottom: 16px; }
.vesper-ui-cta-tabs .vesper-ui-tab { padding: 7px 12px; font-size: 12px; }
.vesper-ui-cta-tabs .cnt { font-size: 10px; color: #8B7BA8; font-weight: 500; }
.vesper-ui-cta-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 1200px) { .vesper-ui-cta-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .vesper-ui-cta-kpis { grid-template-columns: repeat(2, 1fr); } }
.vesper-ui-cta-stat { background: #fff; border: 1px solid #DDD6EE; border-radius: 10px; padding: 10px 12px; border-left: 3px solid var(--barra, #DDD6EE); }
.vesper-ui-cta-stat .lbl { font-size: 9px; color: #8B7BA8; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.vesper-ui-cta-stat .val { font-size: 20px; font-weight: 700; color: var(--val, #1A1025); font-family: Georgia, serif; margin: 2px 0; line-height: 1.15; }
.vesper-ui-cta-stat .sub { font-size: 10px; color: #8B7BA8; }
.vesper-ui-cta-seg { margin-bottom: 16px; background: #fcfaff; border: 1px solid #e8d5f5; border-radius: 8px; padding: 0; }
.vesper-ui-cta-seg > summary {
    padding: 10px 14px; font-size: 12px; font-weight: 700; color: #582C83; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.vesper-ui-cta-seg > summary::-webkit-details-marker { display: none; }
.vesper-ui-cta-seg > summary .resumen { color: #8B7BA8; font-weight: 500; }
.vesper-ui-cta-seg > summary .toggle { font-size: 11px; color: #8B7BA8; font-weight: 500; }
.vesper-ui-cta-seg-body { padding: 0 14px 14px; overflow-x: auto; }
.vesper-ui-cta-seg-tbl { width: 100%; font-size: 11px; border-collapse: collapse; }
.vesper-ui-cta-seg-tbl th { text-align: left; padding: 6px 8px; background: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #8B7BA8; border-bottom: 1px solid #DDD6EE; }
.vesper-ui-cta-seg-tbl td { padding: 6px 8px; border-bottom: 1px solid #ede7f5; vertical-align: middle; }
.vesper-ui-cta-seg-tbl tr.vencido td { background: #fef2f2; }
.vesper-ui-cta-seg-mas { font-size: 11px; color: #8B7BA8; text-align: center; padding: 6px; }
.vesper-ui-cta-badge { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.vesper-ui-cta-prio { font-weight: 700; font-size: 11px; white-space: nowrap; }
.vesper-ui-cta-tabla-wrap { background: #fff; border: 1px solid #DDD6EE; border-radius: 10px; overflow: hidden; }
.vesper-ui-cta-tabla-wrap .vesper-ui-tabla td.mud-table-cell { padding: 7px 8px; font-size: 12px; }
.vesper-ui-cta-tabla-wrap .vesper-ui-tabla th.mud-table-cell { padding: 7px 8px; }
.vesper-ui-cta-tabla-wrap tr.con-vencidos td.mud-table-cell { background: #fef9f9 !important; }
.vesper-ui-cta-vencidos { font-size: 10px; color: #dc2626; font-weight: 700; animation: vesper-cta-pulse 2s infinite; margin-left: 3px; }
@keyframes vesper-cta-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.vesper-ui-cta-ver {
    display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 600;
    border: 1px solid #DDD6EE; background: #fff; color: #4A3A60; cursor: pointer; font-family: 'Segoe UI', sans-serif; transition: all .15s;
}
.vesper-ui-cta-ver:hover { border-color: #582C83; color: #582C83; background: #F0EBF8; }
.vesper-ui-cta-del { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; border: 1px solid #fecaca; background: #fee2e2; color: #dc2626; cursor: pointer; font-size: 12px; margin-left: 4px; }
.vesper-ui-cta-del:hover { background: #dc2626; color: #fff; }

/* Dialog Nueva / Editar acta */
/* OJO: app.css pinta TODO .mud-dialog .mud-dialog-title con gradiente morado; el mockup usa header BLANCO → se anula
   con más especificidad (.mud-dialog + clase), igual que .vesper-ui-dlg-plain. */
.mud-dialog.vesper-ui-actadlg .mud-dialog-title { padding: 0; background: #fff; color: #582C83 !important; }
.vesper-ui-actadlg .acta-hdr { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px; padding-right: 56px; border-bottom: 1px solid #EEEBF5; }
.vesper-ui-actadlg .acta-hdr-tit { font-family: Georgia, serif; font-size: 16px; font-weight: 700; color: #582C83; }
.vesper-ui-actadlg .mud-dialog-title button { color: #4A3A60 !important; background: #EEEBF5; top: 12px; right: 12px; }
.vesper-ui-actadlg .mud-dialog-title button:hover { background: #FDECEA; color: #C0392B !important; }
.vesper-ui-actadlg .mud-dialog-content { padding: 0; }
.vesper-ui-actadlg .acta-tabsbar { border-bottom: 1px solid #EEEBF5; padding: 0 16px; background: #fcfaff; display: flex; flex-wrap: wrap; }
.vesper-ui-actadlg .acta-tab {
    padding: 10px 14px; font-size: 12px; font-weight: 600; color: #8B7BA8; background: transparent; border: none;
    border-bottom: 2px solid transparent; cursor: pointer; transition: all .15s; font-family: 'Segoe UI', sans-serif; margin-bottom: -1px;
}
.vesper-ui-actadlg .acta-tab.active { color: #582C83; border-bottom-color: #582C83; background: #faf7fd; }
.vesper-ui-actadlg .acta-tab:hover:not(.active) { color: #582C83; background: #faf7fd; }
.vesper-ui-actadlg .acta-body { padding: 0 16px; max-height: 66vh; overflow-y: auto; }
.vesper-ui-actadlg .acta-pane { padding: 16px 4px 12px; }
.vesper-ui-actadlg .acta-pane h4 {
    font-size: 11px; font-weight: 700; color: #8B7BA8; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px;
    border-bottom: 1px solid #EEEBF5; padding-bottom: 6px;
}
.vesper-ui-actadlg .acta-pane h4.mt { margin-top: 18px; }
.vesper-ui-actadlg .acta-hint { font-size: 11px; color: #8B7BA8; margin-bottom: 8px; }
.vesper-ui-actadlg .acta-grid { display: grid; gap: 10px; margin-bottom: 14px; }
.vesper-ui-actadlg .acta-grid.c4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.vesper-ui-actadlg .acta-grid.c4w { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.vesper-ui-actadlg .acta-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }
.vesper-ui-actadlg .acta-grid.c2 { grid-template-columns: 1fr 1fr; }
.vesper-ui-actadlg .acta-grid.c12 { grid-template-columns: 1fr 2fr; }
.vesper-ui-actadlg .span2 { grid-column: span 2; }
@media (max-width: 860px) { .vesper-ui-actadlg .acta-grid.c4, .vesper-ui-actadlg .acta-grid.c4w, .vesper-ui-actadlg .acta-grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vesper-ui-actadlg .acta-grid { grid-template-columns: 1fr !important; } .vesper-ui-actadlg .span2 { grid-column: auto; } }
.vesper-ui-actadlg .vesper-ui-fld > label { font-size: 11px; font-weight: 600; color: #4A3A60; text-transform: none; letter-spacing: 0; }
.vesper-ui-actadlg .vesper-ui-fld > label .req { color: #dc2626; }
/* Controles parejos (--acta-h). Mismo arreglo que .vesper-ui-dlg: MudBlazor suma padding vertical al alto (content-box)
   y en MudBlazor 9 `.mud-select-input` es el CONTENEDOR del select → alto fijo en border-box + valor centrado con flex. */
.vesper-ui-actadlg { --acta-h: 36px; }
.vesper-ui-actadlg .acta-row { --acta-h: 31px; }
.vesper-ui-actadlg .vesper-ui-fld .mud-input-slot, .vesper-ui-actadlg .vesper-ui-fld .mud-select-input {
    height: var(--acta-h); box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: var(--acta-h);
}
.vesper-ui-actadlg .vesper-ui-fld .mud-input.mud-input-outlined { padding: 0; }
.vesper-ui-actadlg .vesper-ui-fld .mud-input-control { margin: 0; }
.vesper-ui-actadlg .vesper-ui-fld .vesper-date-field .mud-input-slot { display: flex; align-items: center; }
.vesper-ui-actadlg .vesper-ui-fld .vesper-date-field input { height: 100%; box-sizing: border-box; line-height: normal; }
.vesper-ui-actadlg .vesper-ui-fld textarea.mud-input-slot {
    height: auto; min-height: 60px; line-height: 1.45; padding-top: 8px; padding-bottom: 8px;
}
.vesper-ui-actadlg .vesper-ui-fld .mud-select .mud-select-input {
    display: flex !important; align-items: center; height: var(--acta-h) !important; min-height: var(--acta-h);
    box-sizing: border-box; padding: 0 !important; position: relative;
}
.vesper-ui-actadlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-slot {
    height: auto !important; min-height: 0; margin: 0 !important; padding: 0 34px 0 12px !important; line-height: 1.3 !important;
    display: flex; align-items: center; flex: 1; box-sizing: border-box;
}
.vesper-ui-actadlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-slot > div { display: flex; align-items: center; }
.vesper-ui-actadlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-adornment,
.vesper-ui-actadlg .vesper-ui-fld .mud-select .mud-select-input .mud-input-adornment-end { align-self: center; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin: 0; }
/* Numérico sin flechas (el mockup es un input plano) */
.vesper-ui-actadlg .vesper-ui-fld .mud-input-numeric-spin { display: none; }
.vesper-ui-actadlg .vesper-ui-fld .mud-input.mud-input-outlined { font-size: 12.5px; font-weight: 500; border-radius: 8px; }
.vesper-ui-actadlg .vesper-ui-fld .mud-input-outlined-border { border-radius: 8px; }
.vesper-ui-actadlg .vesper-ui-fld.ro .mud-input.mud-input-outlined { background: #FAF9FC; }
.vesper-ui-actadlg .vesper-ui-fld .mud-input-control-input-container textarea { font-size: 12.5px; line-height: 1.45; }
.vesper-ui-actadlg .acta-row {
    display: grid; gap: 8px; align-items: start; background: #FAF9FC; padding: 10px; border-radius: 6px; margin-bottom: 8px; border-left: 3px solid #582C83;
}
.vesper-ui-actadlg .acta-row .vesper-ui-fld > label { font-size: 10px; margin-bottom: 0; }
.vesper-ui-actadlg .acta-row .vesper-ui-fld .mud-input.mud-input-outlined { font-size: 12px; }
.vesper-ui-actadlg .acta-row .num { font-weight: 700; color: #582C83; align-self: center; font-size: 14px; padding-top: 14px; }
.vesper-ui-actadlg .acta-row-rm {
    background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; border-radius: 4px; padding: 3px 7px; cursor: pointer; font-size: 11px;
    align-self: start; margin-top: 18px; font-family: 'Segoe UI', sans-serif; line-height: 1.3;
}
.vesper-ui-actadlg .acta-row-rm:hover { background: #dc2626; color: #fff; }
.vesper-ui-actadlg .acta-row .sub { display: grid; gap: 6px; margin-top: 6px; }
.vesper-ui-actadlg .acta-add {
    font-size: 12px; padding: 6px 12px; background: #F0EBF8; color: #582C83; border: 1px dashed #d8c4ee; border-radius: 6px;
    cursor: pointer; font-weight: 600; font-family: 'Segoe UI', sans-serif; transition: all .15s;
}
.vesper-ui-actadlg .acta-add:hover { background: #582C83; color: #fff; border-style: solid; }
.vesper-ui-actadlg .acta-vacio { font-size: 12px; color: #8B7BA8; font-style: italic; padding: 4px 0 8px; }
.vesper-ui-actadlg .quorum-box { padding: 10px 12px; background: #F0EBF8; border-radius: 6px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.vesper-ui-actadlg .quorum-box .validez { font-weight: 700; }
.vesper-ui-actadlg .acta-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #EEEBF5; width: 100%; }
.vesper-ui-actadlg .acta-footer .resumen { font-size: 11px; color: #8B7BA8; }
.vesper-ui-actadlg .mud-dialog-actions { padding: 0; }
.vesper-ui-actadlg .acta-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4A3A60; padding-top: 22px; }

/* ── 17. Blacklist & Watchlist (mockup 02.09 «view-blacklist», Fase 1 2026-09-21) ──
   Reusa header/alertas/tabs/stat-cards/tabla de Comités (.vesper-ui-cta-*, bloque 16); aquí solo lo propio:
   banners legales, fila del filtro por grupo, tinte de fila por lista y los textos coloreados de la tabla. */
.vesper-ui-bl .bl-banner { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; font-size: 11px; line-height: 1.6; }
.vesper-ui-bl .bl-banner.plaft { background: #fafafa; border: 1px solid #e5e7eb; border-left: 3px solid #582C83; color: #525252; }
.vesper-ui-bl .bl-banner.plaft .tit { font-weight: 700; color: #1f2937; margin-bottom: 2px; }
.vesper-ui-bl .bl-banner.tipping { background: #fffbeb; border: 1px solid #fde68a; border-left: 3px solid #b45309; color: #78350f; margin-bottom: 12px; }
.vesper-ui-bl .bl-grupo { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #8B7BA8; margin: -6px 0 12px; flex-wrap: wrap; }
.vesper-ui-bl .bl-grupo strong { color: #4A3A60; font-weight: 600; }
.vesper-ui-bl .bl-grupo .vesper-ui-cta-select { height: 28px; font-size: 11px; padding: 3px 8px; }
.vesper-ui-bl .vesper-ui-tabla tr.fila-pep td.mud-table-cell { background: #fbfaff; }
.vesper-ui-bl .vesper-ui-tabla tr.fila-bl td.mud-table-cell { background: #fffafa; }
.vesper-ui-bl .vesper-ui-tabla tr.fila-wl td.mud-table-cell { background: #fffefa; }
.vesper-ui-bl .vesper-ui-tabla td.mud-table-cell { vertical-align: top; }
.vesper-ui-bl .bl-lista { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.vesper-ui-bl .bl-grupo-txt { font-size: 11px; font-weight: 600; }
.vesper-ui-bl .bl-sub { font-size: 10px; color: #8B7BA8; margin-top: 2px; }
.vesper-ui-bl .bl-desc { font-size: 11px; color: #4A3A60; max-width: 280px; line-height: 1.4; }
.vesper-ui-bl .bl-nombre { font-size: 12px; color: #1A1025; }
.vesper-ui-bl .bl-ident { font-size: 11px; white-space: nowrap; }
.vesper-ui-bl .mono { font-family: Consolas, 'Courier New', monospace; }
.vesper-ui-bl .bl-sev { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.vesper-ui-bl .bl-sev .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.vesper-ui-bl .bl-acc { font-size: 11px; font-weight: 500; }
.vesper-ui-bl .bl-fuente { font-size: 11px; color: #1A1025; }
.vesper-ui-bl .bl-estado { font-size: 11px; font-weight: 600; }
.vesper-ui-bl .bl-rev { font-size: 11px; font-weight: 700; }

/* Dialogs de Blacklist (Fase 2): detalle «📄 Ver» y «🔍 Verificar». Se combinan con .vesper-ui-dlg-plain; los
   textos de tabla (.bl-lista, .bl-sev, .bl-sub…) se repiten aquí porque el dialog vive fuera de .vesper-ui-bl (portal). */
.vesper-ui-bldlg .bl-lista { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.vesper-ui-bldlg .bl-sev { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.vesper-ui-bldlg .bl-sev .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.vesper-ui-bldlg .bl-acc, .vesper-ui-bldlg .bl-estado { font-size: 12px; font-weight: 600; }
.vesper-ui-bldlg .bl-rev { font-size: 12px; font-weight: 700; }
.vesper-ui-bldlg .bl-sub { font-size: 11px; color: #8B7BA8; }
.vesper-ui-bldlg .mono { font-family: Consolas, 'Courier New', monospace; }
.vesper-ui-bldlg .nw { white-space: nowrap; }
.vesper-ui-bldlg .bld-conf { padding: 7px 12px; background: #fafafa; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 11px; color: #525252; margin-bottom: 14px; }
.vesper-ui-bldlg .bld-vacio { padding: 24px; text-align: center; color: #8B7BA8; font-style: italic; font-size: 12px; }
.vesper-ui-bldlg .k { font-size: 9px; color: #8B7BA8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.vesper-ui-bldlg .bld-cab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #EEEBF5; margin-bottom: 14px; }
.vesper-ui-bldlg .bld-caja { background: #FAF9FC; padding: 10px 12px; border-radius: 6px; border-left: 3px solid #582C83; margin-bottom: 14px; }
.vesper-ui-bldlg .bld-caja.azul { border-left-color: #1d4ed8; }
.vesper-ui-bldlg .bld-caja.lila { background: #f5f3ff; border-left-color: #6d28d9; }
.vesper-ui-bldlg .bld-tit { font-size: 10px; font-weight: 700; color: #582C83; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.vesper-ui-bldlg .bld-tit.gris { color: #8B7BA8; font-size: 11px; }
.vesper-ui-bldlg .bld-tit.azul { color: #1d4ed8; }
.vesper-ui-bldlg .bld-tit.lila { color: #6d28d9; }
.vesper-ui-bldlg .bld-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; font-size: 12px; line-height: 1.7; color: #1A1025; }
.vesper-ui-bldlg .bld-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 11px; color: #4A3A60; }
.vesper-ui-bldlg .span2 { grid-column: span 2; }
.vesper-ui-bldlg .span4 { grid-column: 1 / -1; }
.vesper-ui-bldlg .bld-sec { margin-bottom: 14px; }
.vesper-ui-bldlg .bld-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.vesper-ui-bldlg .bld-cat { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; border: 1px solid; background: #fff; }
.vesper-ui-bldlg .bld-motivo { font-size: 12px; color: #4A3A60; background: #FAF9FC; padding: 10px 12px; border-radius: 5px; line-height: 1.6; white-space: pre-wrap; }
.vesper-ui-bldlg .bld-lineas { font-size: 12px; line-height: 1.7; color: #1A1025; word-break: break-word; }
.vesper-ui-bldlg .bld-lineas .mt { margin-top: 4px; }
.vesper-ui-bldlg .bld-lineas code { font-family: Consolas, monospace; background: #fff; padding: 1px 6px; border-radius: 3px; }
.vesper-ui-bldlg a { color: #1d4ed8; }
.vesper-ui-bldlg .bld-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.vesper-ui-bldlg .bld-tbl td, .vesper-ui-bldlg .bld-tbl th { padding: 5px 8px; border-bottom: 1px solid #EEEBF5; text-align: left; vertical-align: top; }
.vesper-ui-bldlg .bld-tbl th { background: #EEEBF5; color: #582C83; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.vesper-ui-bldlg .bld-tbl .b { font-weight: 600; }
.vesper-ui-bldlg .bld-tbl .gris { color: #8B7BA8; }
.vesper-ui-bldlg .bld-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; font-size: 12px; }
.vesper-ui-bldlg .bld-audit { background: #f9fafb; border-radius: 5px; padding: 10px 12px; border-top: 1px solid #EEEBF5; }
.vesper-ui-bldlg .bld-input { width: 100%; height: 36px; font-size: 13px; }
.vesper-ui-bldlg .bld-veredicto { margin-top: 14px; padding: 10px 14px; border: 1px solid; border-radius: 6px; font-size: 12px; }
.vesper-ui-bldlg .bld-veredicto .det { font-size: 11px; margin-top: 3px; opacity: .85; }
.vesper-ui-bldlg .bld-res { margin-top: 10px; }
@media (max-width: 700px) {
    .vesper-ui-bldlg .bld-cab, .vesper-ui-bldlg .bld-grid4 { grid-template-columns: 1fr 1fr; }
    .vesper-ui-bldlg .bld-dos, .vesper-ui-bldlg .bld-grid2 { grid-template-columns: 1fr; }
}

/* Bitácora de hits (Fase 3): badge azul de la columna Hits, marca «FP» y texto verde del falso positivo. */
.vesper-ui-bl .bl-hits { display: inline-block; font-size: 11px; color: #1d4ed8; font-weight: 700; background: #eff6ff; padding: 1px 7px; border-radius: 10px; }
.vesper-ui-bl .bl-fp { font-size: 9px; color: #16a34a; font-weight: 700; margin-left: 4px; border: 1px solid #bbf7d0; border-radius: 4px; padding: 0 3px; }
.vesper-ui-bldlg .bld-fp-txt { font-size: 10px; color: #16a34a; font-weight: 700; text-transform: none; letter-spacing: 0; }
.vesper-ui-bl .bl-fecha { font-size: 11px; color: #1A1025; font-weight: 600; }

/* ── 17. Dialog «Detalle de Noticia» (.vesper-noticia-dlg, 2026-09-22): compacto sobre .vesper-ui-dlg-plain ── */
.vesper-noticia-dlg .vesper-noticia-dlg-meta .mud-typography { font-size: 12px; }
.vesper-noticia-dlg .vesper-noticia-dlg-meta .mud-icon-root { font-size: 16px; }
.vesper-noticia-dlg .mud-chip.mud-chip-size-small { height: 20px; font-size: 0.68rem; padding: 0 8px; }
.vesper-noticia-dlg .mud-typography-subtitle2 { font-size: 12.5px; }


/* ── 18. Cuentas de abono del mutuo (tab Cierre del prospecto, SeccionCuentasAbonoCierre, 2026-09-23) ──
   Antes vivía en el Levantamiento (DialogProspectoWealth <style>); ahora el bloque se elige en el Cierre
   con check «misma cuenta para capital e intereses». */
.vesper-abono-box { border: 1px solid #DDD6EE; border-left: 4px solid #EAAA00; border-radius: 10px; background: #FBF9FE; padding: 10px 14px; }
.vesper-abono-titulo { font-size: 12px; font-weight: 700; color: #582C83; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.vesper-abono-titulo span { font-weight: 400; color: #8B7BA8; text-transform: none; letter-spacing: 0; }
.vesper-abono-fila { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 4px 0; }
.vesper-abono-moneda { flex: 0 0 44px; font-weight: 700; color: #582C83; font-size: 13px; padding-bottom: 8px; }
.vesper-abono-campo { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vesper-abono-campo > span { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8B7BA8; }
.vesper-abono-campo select { height: 36px; border: 1px solid #C9BEDD; border-radius: 8px; padding: 0 10px; font-size: 13px; color: #1e1a2e; background: #fff; }
.vesper-abono-campo select:focus { outline: 2px solid #582C83; outline-offset: 0; border-color: #582C83; }
.vesper-abono-campo select:disabled { background: #F3F0F8; color: #5c5672; }
.vesper-abono-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #4A3A60; margin: 2px 0 8px; cursor: pointer; }
.vesper-abono-check input { width: 16px; height: 16px; accent-color: #582C83; cursor: pointer; }
.vesper-abono-bloqueo { font-size: 11.5px; color: #7D5A07; background: #FEF9E7; border: 1px solid #F3E4B0; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }

/* ── 19. Firma del Gerente General (Configuración → Datos Empresa, 2026-09-23) + botón de carga genérico ── */
.vesper-ui-firma-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; border: 1px solid #DDD6EE; border-radius: 10px; padding: 12px 14px; background: #FBFAFD; }
.vesper-ui-firma-preview { flex: 0 0 300px; min-height: 96px; display: flex; align-items: center; justify-content: center; border: 1px dashed #C9BEDD; border-radius: 8px; background: #fff; padding: 8px; font-size: 12px; color: #8B7BA8; text-align: center; }
.vesper-ui-firma-preview img { max-height: 96px; max-width: 280px; display: block; }
.vesper-ui-firma-acciones { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vesper-ui-firma-acciones .hint { font-size: 11px; color: #8B7BA8; }
.vesper-ui-upload-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid #DDD6EE; border-radius: 8px; background: #fff; color: #582C83; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vesper-ui-upload-btn:hover { background: #F0EBF8; border-color: #582C83; }

/* ── 20. Equipo Comercial (Gestión → Equipo, tablero solo lectura, mockup 02.09 «page-equipo», 2026-09-23) ── */
.vesper-eq-hdr { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.vesper-eq-acento { display: inline-block; width: 4px; height: 22px; background: #EAAA00; border-radius: 2px; margin-right: 10px; vertical-align: -3px; }
.vesper-eq-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.vesper-eq-ficha { background: #fff; border: 1px solid #DDD6EE; border-top: 4px solid #582C83; border-radius: 10px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(88,44,131,.06); }
.vesper-eq-ficha-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vesper-eq-ficha-hd .nom { font-weight: 700; font-size: 14px; color: #1A1025; }
.vesper-eq-ficha-hd .cargo { font-size: 11px; color: #8B7BA8; }
.vesper-eq-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 16px; color: #fff; flex-shrink: 0; }
.vesper-eq-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vesper-eq-stat { text-align: center; padding: 9px; background: #F0EBF8; border-radius: 6px; }
.vesper-eq-stat .k { font-size: 10px; color: #8B7BA8; letter-spacing: .4px; }
.vesper-eq-stat .v { font-size: 15px; font-weight: 700; color: #582C83; }
.vesper-eq-vacio { text-align: center; color: #8B7BA8; padding: 30px; border: 1px dashed #DDD6EE; border-radius: 10px; background: #fff; margin-bottom: 20px; font-size: 13px; }
.vesper-eq-vacio-td { text-align: center; color: #8B7BA8; padding: 20px !important; }
.vesper-eq-link { font-size: 12px; font-weight: 600; color: #582C83; text-decoration: none; }
.vesper-eq-link:hover { text-decoration: underline; }
.vesper-eq-tipo { font-size: 10px; color: #8B7BA8; margin-left: 6px; font-weight: 500; }
.vesper-eq-pill { border: 1px solid #DDD6EE; background: #fff; color: #4A3A60; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.vesper-eq-pill:hover { border-color: #582C83; color: #582C83; }
.vesper-eq-pill.activa { background: #582C83; border-color: #582C83; color: #fff; }
.vesper-eq-btn-gold { border: 1px solid #EAAA00; background: #EAAA00; color: #1A1025; border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.vesper-eq-btn-gold:hover { background: #d99b00; }
.vesper-eq-rango { padding: 8px 16px 0; font-size: 11px; color: #8B7BA8; }
.vesper-eq-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.vesper-eq-kpi { background: #fff; border: 1px solid #DDD6EE; border-top: 3px solid #582C83; border-radius: 8px; padding: 12px; }
.vesper-eq-kpi .k { font-size: 11px; color: #8B7BA8; text-transform: uppercase; letter-spacing: .4px; }
.vesper-eq-kpi .v { font-size: 20px; font-weight: 700; color: #582C83; font-family: Georgia, serif; }
.vesper-eq-kpi .s { font-size: 10px; color: #8B7BA8; min-height: 12px; }

/* ── 21. Acordeones de Configuración (Sueldo, Comisiones y Metas, mockup 02.09 «cfg-acc», 2026-09-25) ──
   .vesper-ui-acordeon > .hdr (título con emoji + chevron) / .body ; .cerrado pliega. Tabla de configuración
   .vesper-ui-cfg-tbl (thead lila, inputs compactos) y grilla de bonificaciones .vesper-ui-bonif (.penal = rojo). */
.vesper-ui-acordeon { background: #fff; border: 1px solid #DDD6EE; border-radius: 10px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--vui-shadow, 0 1px 4px rgba(88,44,131,.07)); }
.vesper-ui-acordeon > .hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; }
.vesper-ui-acordeon > .hdr:hover { background: #F8F5FB; }
.vesper-ui-acordeon > .hdr .tit { font-weight: 700; font-size: 13.5px; color: #582C83; font-family: Georgia, serif; }
.vesper-ui-acordeon > .hdr .chev { color: #8B7BA8; font-size: 14px; transition: transform .2s; }
.vesper-ui-acordeon.cerrado > .hdr .chev { transform: rotate(-90deg); }
.vesper-ui-acordeon > .body { padding: 12px 14px 14px; border-top: 1px solid #EEEBF5; }
.vesper-ui-acordeon.cerrado > .body { display: none; }
.vesper-ui-acordeon .desc { font-size: 12px; color: #4A3A60; line-height: 1.5; margin-bottom: 10px; }
.vesper-ui-acordeon .toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.vesper-ui-acordeon .toolbar .desc { flex: 1 1 420px; }
.vesper-ui-acordeon .toolbar button { flex: 0 0 auto; }

.vesper-ui-cfg-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.vesper-ui-cfg-tbl th { text-align: left; padding: 8px 10px; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #8B7BA8; background: #EEEBF5; border-bottom: 1px solid #DDD6EE; white-space: nowrap; }
.vesper-ui-cfg-tbl td { padding: 7px 10px; border-bottom: 1px solid #EDE9F5; vertical-align: middle; color: #1A1025; }
.vesper-ui-cfg-tbl tr:last-child td { border-bottom: none; }
.vesper-ui-cfg-tbl td.num, .vesper-ui-cfg-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vesper-ui-cfg-tbl td.vacio { text-align: center; color: #8B7BA8; padding: 18px; }
.vesper-ui-cfg-tbl .mud-input-control { margin: 0; }
.vesper-ui-tipo-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: #F0EBF8; color: #582C83; font-size: 10px; font-weight: 700; vertical-align: middle; }

.vesper-ui-bonif { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vesper-ui-bonif .item { border: 1px solid #DDD6EE; border-left: 4px solid #1A7A4A; border-radius: 8px; padding: 10px 12px; background: #FCFBFE; }
.vesper-ui-bonif .item.penal { border-left-color: #C0392B; }
.vesper-ui-bonif .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #582C83; }
.vesper-ui-bonif .hint { font-size: 11px; color: #8B7BA8; margin-top: 4px; }
.vesper-ui-bonif .val { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.vesper-ui-bonif .val .mud-input-control { margin: 0; }
.vesper-ui-cfg-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 2px 0 12px; }
@media (max-width: 900px) { .vesper-ui-bonif { grid-template-columns: 1fr; } }

/* ── 22. Gestión → Comisiones y Lq. Comisión (mockup 02.09 «page-comisiones» / «page-liquidacion», 2026-09-25) ──
   Reusa el bloque 20 (.vesper-eq-*) para cabecera, KPIs y tablas. Aquí: calculadora a dos columnas, resultado dorado,
   desglose en filas, badge provisional y grilla de sueldo proyectado. */
.vesper-com-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .vesper-com-grid { grid-template-columns: 1fr; } }
.vesper-com-total { text-align: center; padding: 18px; background: #FFF7DB; border-radius: 10px; margin: 8px 0 14px; }
.vesper-com-total .lbl { font-size: 11px; color: #8B7BA8; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.vesper-com-total .val { font-family: Georgia, serif; font-size: 38px; font-weight: 700; color: #B8860B; line-height: 1; }
.vesper-com-total .sub { font-size: 12px; color: #8B7BA8; margin-top: 6px; }
.vesper-com-fila { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EDE9F5; font-size: 12px; }
.vesper-com-fila:last-child { border-bottom: none; }
.vesper-com-fila .k { color: #4A3A60; }
.vesper-com-fila.ok .k, .vesper-com-fila.ok strong { color: #1A7A4A; }
.vesper-com-fila.bad .k, .vesper-com-fila.bad strong { color: #C0392B; }
.vesper-com-sueldo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.vesper-com-sueldo .cel { padding: 12px; text-align: center; background: #F8F5FB; border-radius: 10px; }
.vesper-com-sueldo .cel .k { font-size: 10px; color: #8B7BA8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.vesper-com-sueldo .cel .v { font-size: 18px; font-weight: 700; color: #4A3A60; }
.vesper-com-sueldo .cel.var .v { color: #B8860B; }
.vesper-com-sueldo .cel.take { grid-column: 1 / -1; background: #F0EBF8; }
.vesper-com-sueldo .cel.take .k { color: #582C83; font-weight: 700; }
.vesper-com-sueldo .cel.take .v { font-family: Georgia, serif; font-size: 24px; color: #582C83; }
.vesper-com-tramos { padding: 12px; background: #F8F5FB; border-radius: 10px; border-left: 3px solid #582C83; margin-bottom: 12px; font-size: 11.5px; color: #4A3A60; line-height: 2; }
.vesper-com-tramos .t { font-size: 11px; font-weight: 700; color: #8B7BA8; letter-spacing: .5px; margin-bottom: 4px; line-height: 1.4; }
.vesper-com-tramos strong { color: #582C83; }
.vesper-com-prov { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #FFF7DB; color: #B8860B; border: 1px solid #F0C94A; font-size: 11px; font-weight: 700; }
.vesper-com-nota { font-size: 11px; color: #8B7BA8; line-height: 1.5; padding: 10px 16px 14px; }
.vesper-com-nota b { color: #4A3A60; }
.vesper-com-rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #F0EBF8; color: #582C83; font-weight: 800; font-size: 11px; }
.vesper-com-rank.oro { background: #EAAA00; color: #fff; }
.vesper-com-rank.plata { background: #C0C0C0; color: #fff; }
.vesper-com-rank.bronce { background: #CD7F32; color: #fff; }
.vesper-com-yo td { background: #FBF7FF !important; }
.vesper-com-tabs { display: flex; gap: 4px; border-bottom: 2px solid #DDD6EE; margin: 0 16px 12px; }
.vesper-com-tab { border: 0; background: transparent; padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: #8B7BA8; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.vesper-com-tab.activo { color: #582C83; border-bottom-color: #EAAA00; }
.vesper-com-badge-evento { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #F0EBF8; color: #582C83; font-size: 10.5px; font-weight: 700; }

/* ── 23. Cabeceras ordenables genéricas de .vesper-ui-tabla (Helpdesk, 2026-09-25) ──
   <th class="sortable [activa]">Título <span class="flecha">▲|▼|⇅</span></th> ; el click lo maneja la página. */
.vesper-ui-tabla th.sortable { cursor: pointer; user-select: none; }
.vesper-ui-tabla th.sortable:hover { color: #582C83 !important; }
.vesper-ui-tabla th.sortable.activa { color: #582C83 !important; }
.vesper-ui-tabla th.sortable .flecha { font-size: 9px; color: #C9BEDF; margin-left: 3px; }
.vesper-ui-tabla th.sortable.activa .flecha { color: #EAAA00; }

/* ── 24. Tabla PLANA <table class="vesper-ui-tabla"> (sin MudTable): mismo look que la MudTable del bloque 5
   (Helpdesk, Desarrollo, Comisiones, Lq. Comisión, Equipo, 2026-09-25). Las reglas del bloque 5 solo cubren
   .mud-table-cell; estas dan padding, tipografía y hover a th/td nativos. ── */
table.vesper-ui-tabla { width: 100%; border-collapse: collapse; font-size: 12px; }
table.vesper-ui-tabla thead th {
    background: #EEEBF5; font-size: 10px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase;
    color: #8B7BA8; padding: 10px 14px; border-bottom: 1px solid #DDD6EE; white-space: nowrap; text-align: left;
}
table.vesper-ui-tabla tbody td { padding: 11px 14px; font-size: 12px; color: #1A1025; border-bottom: 1px solid #EDE9F5; vertical-align: middle; line-height: 1.35; }
table.vesper-ui-tabla tbody tr:nth-child(even) td { background: rgba(127,127,127,.025); }
table.vesper-ui-tabla tbody tr:hover td { background: #F8F5FB; }
table.vesper-ui-tabla tbody tr:last-child td { border-bottom: none; }
table.vesper-ui-tabla tfoot td { padding: 10px 14px; font-size: 12px; border-top: 1px solid #DDD6EE; }
table.vesper-ui-tabla .fw7 { font-weight: 700; }
table.vesper-ui-tabla .fw8 { font-weight: 800; }
table.vesper-ui-tabla th.tr, table.vesper-ui-tabla td.tr { text-align: right; }
table.vesper-ui-tabla th.tc, table.vesper-ui-tabla td.tc { text-align: center; }
table.vesper-ui-tabla td .vesper-ui-badge { white-space: nowrap; }
