/* ============================================================
   TEMA v2 · 72 · ESTADÍSTICAS  ·  analítica
   Índigo y violeta. Cifras clave arriba, filtros como control
   segmentado y gráficos de barras protagonistas, con degradé suave.
   ============================================================ */
#view[data-route="estadisticas"] .page-title { background: linear-gradient(120deg, #2d3270, #5a43a8); }
#view[data-route="estadisticas"] .page-title::after { border-color: rgba(255, 255, 255, .08); }
#view[data-route="estadisticas"] .page-title h2::after { background: #b9a6ff; }

/* filtros como control segmentado */
#view[data-route="estadisticas"] .filters { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 8px; gap: 6px; box-shadow: var(--shadow-sm); align-items: center; }
#view[data-route="estadisticas"] .filters .btn { box-shadow: none; border-color: transparent; background: transparent; border-radius: 14px; min-height: 42px; color: var(--text-muted); }
#view[data-route="estadisticas"] .filters .btn:hover { background: var(--accent-soft); color: var(--accent); }
#view[data-route="estadisticas"] .filters .btn-primary { background: var(--accent-solid); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--accent-solid) 40%, transparent); }
#view[data-route="estadisticas"] .filters input { min-height: 42px; border-radius: 12px; padding: 8px 12px; }

/* KPIs */
#view[data-route="estadisticas"] .stat::after { background: linear-gradient(90deg, #4d55a8, #8a6fd6); height: 5px; }
#view[data-route="estadisticas"] .stat .ico-wrap { background: var(--accent-soft); color: var(--accent); }
#view[data-route="estadisticas"] .stat-value { font-size: 52px; color: var(--text); }
#view[data-route="estadisticas"] .grid.cols-4:first-of-type .stat:first-child { background: linear-gradient(135deg, #2d3270, #4d3aa0); color: #f1efff; border: 0; }
#view[data-route="estadisticas"] .grid.cols-4:first-of-type .stat:first-child .stat-top { color: #c9c2ff; }
#view[data-route="estadisticas"] .grid.cols-4:first-of-type .stat:first-child .stat-value { color: #fff; font-size: 50px; }
#view[data-route="estadisticas"] .grid.cols-4:first-of-type .stat:first-child .ico-wrap { background: rgba(255, 255, 255, .16); color: #fff; }

/* gráficos de barras */
#view[data-route="estadisticas"] .card-head h3 { color: var(--accent); }
.bar-row { grid-template-columns: 170px 1fr auto; gap: 16px; padding: 10px 0; }
.bar-label { font-size: 13.5px; font-weight: 700; }
/* .bar-fill es un <span>: sin display:block el ancho en % se ignoraba y las barras salían vacías */
.bar-track { display: block; height: 18px; border-radius: 9px; background: var(--accent-soft); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08); }
.bar-fill { display: block; border-radius: 9px; background: linear-gradient(90deg, #4d55a8, #8a6fd6); box-shadow: 0 2px 8px rgba(77, 85, 168, .35); transition: width .6s var(--ease); }
html[data-theme="dark"] .bar-fill { background: linear-gradient(90deg, #6f78e0, #b49bff); }
.bar-val { font-family: var(--font-num); font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
#view[data-route="estadisticas"] .grid.cols-2 { gap: 18px; }

/* Secciones de Estadísticas: compactas y cerradas para mostrar únicamente el análisis elegido. */
#view[data-route="estadisticas"] .stats-period-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
#view[data-route="estadisticas"] .stats-period-toolbar [hidden] { display: none !important; }
#view[data-route="estadisticas"] .stats-period-toolbar .filters { flex-wrap: wrap; }
#view[data-route="estadisticas"] #chips { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)) 56px; gap: 8px; }
#view[data-route="estadisticas"] #chips .btn { min-width: 0; min-height: 46px; justify-content: center; white-space: normal; }
#view[data-route="estadisticas"] .stats-period-toolbar .filters label { display: grid; gap: 4px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
#view[data-route="estadisticas"] .stats-rango-fields { display: flex; width: 100%; align-items: end; }
#view[data-route="estadisticas"] .stats-accordions { display: grid; gap: 10px; }
#view[data-route="estadisticas"] .stats-section { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
#view[data-route="estadisticas"] .stats-section > summary { min-height: 54px; padding: 15px 17px; font-weight: 750; cursor: pointer; list-style: none; }
#view[data-route="estadisticas"] .stats-section > summary::-webkit-details-marker { display: none; }
#view[data-route="estadisticas"] .stats-section > summary::after { content: "+"; float: right; color: var(--accent); font-size: 20px; line-height: 1; }
#view[data-route="estadisticas"] .stats-section[open] > summary { border-bottom: 1px solid var(--border); color: var(--accent); }
#view[data-route="estadisticas"] .stats-section[open] > summary::after { content: "−"; }
#view[data-route="estadisticas"] .stats-section-body { padding: 14px; min-width: 0; overflow-x: auto; }
#view[data-route="estadisticas"] .stats-section-body > .hint:first-child { margin: 0; }
@media (max-width: 640px) {
  #view[data-route="estadisticas"] #chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  #view[data-route="estadisticas"] #chips .btn { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  #view[data-route="estadisticas"] .stats-rango-fields { align-items: stretch; flex-direction: column; }
  #view[data-route="estadisticas"] .stats-rango-fields label,
  #view[data-route="estadisticas"] .stats-rango-fields input { width: 100%; }
  #view[data-route="estadisticas"] .stats-section > summary { padding: 14px; }
  #view[data-route="estadisticas"] .stats-section-body { padding: 10px; }
}

/* ---------- costo, venta y ganancia por producto (migración 82) + consumo de Parrilla libre (migración 81) ---------- */
.pl-stats { margin-bottom: 14px; }
.pl-stats .stat-value { font-size: 36px; }
.rentab-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 4px 0 12px; }
.rentab-ctl label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.rentab-ctl select { min-height: 40px; border-radius: 10px; padding: 6px 10px; }
.rentab-chk { cursor: pointer; }
.rentab-wrap { overflow-x: auto; }
.rentab-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rentab-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 8px 10px; border-bottom: 2px solid var(--border-strong); white-space: nowrap; }
.rentab-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rentab-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rentab-table th.num { text-align: right; }
.rentab-table td.name { font-weight: 700; }
.rentab-table small { display: block; font-weight: 400; font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: normal; }
.rentab-table td.gan { font-weight: 700; color: var(--ok); }
.rentab-table td.gan small { font-weight: 400; color: var(--text-muted); }
.rentab-table tr.perdida td.gan { color: var(--bad, #b3261e); }
.rentab-table tr.sin-costo td { color: var(--text-muted); }
.rentab-table tr.sin-costo td.gan { color: var(--text-muted); font-weight: 400; }
@media (max-width: 640px) {
  .rentab-table thead { display: none; }
  .rentab-table, .rentab-table tbody, .rentab-table tr { display: block; width: 100%; }
  .rentab-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .rentab-table td { border: 0; padding: 2px 0; }
  .rentab-table td.name { grid-column: 1 / -1; }
  .rentab-table td.num { text-align: left; }
  .rentab-table td.num::before { content: attr(data-l) ": "; font-weight: 400; font-size: 12px; color: var(--text-muted); }
}
.stat-value.stat-nd { font-size: clamp(15px, 4.2vw, 20px); line-height: 1.15; letter-spacing: .02em; white-space: normal; overflow-wrap: anywhere; color: var(--warn, #9a5b00); }

/* ---- Estadísticas simplificadas (Etapa 4) ---- */
.stats-v .stats-kpis { margin: 4px 0 12px; }
.stats-v .stat.warn .stat-value { color: var(--warn); }
.stats-v .stat.bad .stat-value { color: var(--bad, #b3261e); }
.stats-mov { margin: 12px 0; }
.stats-mov h3 { margin: 0 0 6px; }
.stats-mov h4 { margin: 16px 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.stats-mov-fila { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.stats-mov-fila span { min-width: 0; overflow-wrap: anywhere; }
.stats-mov-fila b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-mov-fila.tot { font-weight: 800; }
.stats-mov-fila.pend span { color: var(--warn); }
.stats-orden { margin: 8px 0 12px; }
.stats-sin-costo { color: var(--warn); font-weight: 700; }
.stats-faltan { margin-top: 12px; }
.stats-faltan summary { cursor: pointer; font-weight: 700; }
.stats-chart { width: 100%; overflow-x: auto; }
.stats-chart svg { width: 100%; height: auto; min-width: 280px; display: block; }
.stats-bar { fill: var(--accent-solid, #4d55a8); opacity: .88; }
.stats-line { fill: none; stroke: #1f9d6b; stroke-width: 2.5; }
.stats-dot { fill: #1f9d6b; }
.stats-eje { fill: var(--text-muted); font-size: 11px; }
.stats-guia { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.stats-cero { stroke: var(--border-strong, #999); stroke-width: 1.2; }
.stats-leyenda { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0; font-size: 13px; }
.lg-bar, .lg-line { display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.lg-bar { background: var(--accent-solid, #4d55a8); }
.lg-line { height: 3px; background: #1f9d6b; }
/* Botón «Ver desglose de gastos» (botón grande también en celular) */
.stats-desglose-btn { width: 100%; min-height: 48px; margin: 4px 0 8px; font-weight: 700; }
.stats-mov h3:not(:first-child) { margin-top: 18px; }
/* La tarjeta de Ventas (la primera, oscura) necesita un pie claro: antes el texto gris quedaba ilegible sobre el violeta */
.stats-v .stats-kpis > .stat:first-child .stat-foot { color: rgba(246, 238, 226, .88); }

/* ---- CUENTAS POR COBRAR: saldo actual, independiente del período ---- */
.stats-v #stats-cxc { margin: 0 0 12px; }
.stats-v .cxc-card { display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--border); border-left: 6px solid var(--accent-solid, #8e2c3a); min-height: 44px; font: inherit; color: inherit; }
.stats-v .cxc-card .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stats-v .cxc-saldo { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.stats-v .cxc-panel { margin-top: 8px; }
.stats-v .cxc-lista { display: grid; gap: 6px; }
.stats-v .cxc-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-left: 5px solid var(--border-strong); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.stats-v .cxc-item.vencida { border-left-color: #b3261e; }
.stats-v .cxc-item-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.stats-v .cxc-item small { color: var(--text-muted); font-size: 12px; }
.stats-v .cxc-item > b { white-space: nowrap; }

/* E6: cobranza y desglose no disponible */
.stats-cobranza .stats-sub { margin-left: 14px; font-size: 13px; }
.g-grupo.g-nd { border-left: 4px solid #8a6d00; padding-left: 8px; }

/* Filtro «⋯» → Rango personalizado */
#view[data-route="estadisticas"] .stats-mas { position: relative; display: block; min-width: 0; }
#view[data-route="estadisticas"] .stats-mas > .btn { width: 100%; min-height: 46px; font-size: 20px; line-height: 1; }
#view[data-route="estadisticas"] .stats-mas-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); }
#view[data-route="estadisticas"] .stats-mas-menu .btn { width: 100%; min-height: 46px; justify-content: flex-start; }
#view[data-route="estadisticas"] .stats-mas-menu[hidden] { display: none !important; }
@media (max-width: 640px) { #view[data-route="estadisticas"] .stats-mas-menu { left: 0; right: auto; min-width: 100%; } }

/* Tanda 10: indicadores superiores, referencia de costos, evolución de 12 meses */
#view[data-route="estadisticas"] .stats-ing .stat-value { font-size: clamp(26px, 5vw, 34px); }
#view[data-route="estadisticas"] .stats-ing-nota { margin: 8px 0 12px; font-size: 14px; }
#view[data-route="estadisticas"] .stats-ref { margin: 10px 0; }
#view[data-route="estadisticas"] .stats-ref > summary { cursor: pointer; font-weight: 700; color: var(--text-muted); min-height: 44px; display: flex; align-items: center; }
#view[data-route="estadisticas"] #turno-box select { min-height: 46px; max-width: 100%; }
@media (max-width: 640px) { #view[data-route="estadisticas"] .stats-resumen-titulo { margin: 4px 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); } }

/* ===== RENTABILIDAD POR PRODUCTO: tarjetas (solo vendidas, costo por unidad, costo estimado total, ganancia por unidad y rentabilidad) ===== */
.sp-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 6px; }
.sp { --sp-tono: var(--ok); --sp-fondo: var(--ok-soft); position: relative; display: grid; gap: 12px; padding: 16px 16px 14px 18px; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 1px 2px rgba(30, 20, 10, .05), 0 6px 18px -10px rgba(30, 20, 10, .22); transition: transform .15s ease, box-shadow .15s ease; }
.sp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sp-tono); }
.sp:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30, 20, 10, .06), 0 12px 24px -12px rgba(30, 20, 10, .3); }
.sp-perdida { --sp-tono: var(--danger); --sp-fondo: var(--danger-soft); }
.sp-sin-costo { --sp-tono: var(--warn); --sp-fondo: var(--warn-soft); }
.sp header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sp h4 { margin: 0; min-width: 0; font-size: 17px; line-height: 1.2; font-weight: 800; letter-spacing: -.005em; overflow-wrap: anywhere; }
.sp-pill { flex: none; display: grid; justify-items: end; padding: 5px 11px 6px; border-radius: 12px; background: var(--sp-fondo); color: var(--sp-tono); line-height: 1.05; }
.sp-pill small { font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .9; }
.sp-pill b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-hero { display: grid; gap: 1px; }
.sp-hero span { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.sp-hero b { font-family: var(--font-num, inherit); font-size: clamp(25px, 2.6vw, 31px); line-height: 1.05; font-weight: 800; color: var(--sp-tono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-aviso b { font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.25; }
.sp-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding-top: 11px; border-top: 1px dashed var(--border-strong, var(--border)); }
.sp-datos > div { min-width: 0; padding: 0 8px; border-left: 1px solid var(--border); }
.sp-datos > div:first-child { padding-left: 0; border-left: 0; }
.sp-datos dt { margin-bottom: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.sp-datos dd { margin: 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-datos dd small { font-weight: 500; color: var(--text-muted); }
@media (max-width: 480px) { .sp-lista { grid-template-columns: minmax(0, 1fr); } .sp { padding: 14px 14px 12px 16px; } .sp-datos dd { font-size: 13.5px; } }
html[data-theme="dark"] .sp { box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -12px rgba(0, 0, 0, .7); }

/* ===== EVOLUCIÓN DEL NEGOCIO: barras de ganancia neta por mes (SVG propio) ===== */
.ev-tip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 4px 0 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--text-soft, var(--text-muted)); }
.ev-tip[hidden] { display: none; }
.ev-tip b { margin-right: 4px; font-size: 14px; color: var(--text); text-transform: capitalize; }
.ev-tip em { font-style: normal; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ev-tip .ev-gan em { color: var(--ok); }
.ev-tip .ev-gan.neg em { color: var(--danger); }
.ev-svg { width: 100%; overflow: hidden; }
.ev-svg svg { display: block; max-width: 100%; height: auto; }
.ev-svg .ev-guia { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 5; }
.ev-svg .ev-guia.cero { stroke: var(--border-strong, var(--text-muted)); stroke-dasharray: none; stroke-width: 1.3; }
.ev-svg .ev-eje, .ev-svg .ev-mes { fill: var(--text-muted); font-size: 11.5px; font-family: inherit; }
.ev-svg .ev-mes { text-transform: capitalize; font-weight: 600; }
.ev-svg .ev-anio { fill: var(--text-muted); font-size: 9.5px; font-weight: 500; }
.ev-svg .ev-val { fill: var(--text); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev-svg .ev-rel { fill: var(--ok-solid, var(--ok)); opacity: .55; transition: opacity .15s ease; }
.ev-svg .ev-barra.neg .ev-rel { fill: var(--danger-solid, var(--danger)); }
.ev-svg .ev-barra.sel .ev-rel, .ev-svg .ev-barra:hover .ev-rel { opacity: 1; }
.ev-svg .ev-barra.sel .ev-mes { fill: var(--text); }
.ev-svg .ev-zona { fill: transparent; cursor: pointer; }
.ev-svg .ev-barra { outline: none; }
.ev-svg .ev-barra:focus-visible .ev-zona { fill: color-mix(in srgb, var(--accent-solid) 10%, transparent); stroke: var(--accent-solid); stroke-width: 1.5; rx: 6; }
.ev-tabla { margin-top: 8px; }
.ev-tabla summary { cursor: pointer; min-height: 36px; font-weight: 700; font-size: 13px; color: var(--text-soft, var(--text-muted)); }

/* ===== ESTADÍSTICAS · filtros de período compactos en celular ===== */
@media (max-width: 640px) {
  #view[data-route="estadisticas"] .page-title { padding: 12px 16px; }
  #view[data-route="estadisticas"] .page-title p { display: none; }
  #view[data-route="estadisticas"] .stats-period-toolbar { gap: 6px; }
  #view[data-route="estadisticas"] .stats-period-toolbar .filters { padding: 4px; border-radius: 14px; gap: 4px; }
  #view[data-route="estadisticas"] #chips { grid-template-columns: repeat(4, minmax(0, 1fr)) 40px; gap: 4px; }
  #view[data-route="estadisticas"] #chips .btn { min-height: 38px; padding: 0 2px; font-size: 13.5px; border-radius: 11px; }
  #view[data-route="estadisticas"] .stats-rango-fields { flex-direction: row; flex-wrap: wrap; align-items: end; gap: 6px; }
  #view[data-route="estadisticas"] .stats-rango-fields label { flex: 1 1 130px; width: auto; font-size: 11px; }
  #view[data-route="estadisticas"] .stats-rango-fields input, #view[data-route="estadisticas"] .stats-rango-fields select { min-height: 38px; width: 100%; }
  #view[data-route="estadisticas"] #stats-periodo { margin: 2px 0 0; font-size: 12.5px; }
  #view[data-route="estadisticas"] .stats-resumen-titulo { margin: 2px 0; }
}

/* ===== ESTADÍSTICAS · Productos más vendidos: filtros compactos y lista de ranking ===== */
.stats-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.stats-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.stats-seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.stats-seg button:hover { color: var(--accent); }
.stats-seg button.on { background: var(--accent-solid); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-solid) 35%, transparent); }
@media (max-width: 640px) { .stats-seg { flex: 1 1 100%; } .stats-seg button { flex: 1; padding: 0 6px; } }
.rk { list-style: none; margin: 0 0 10px; padding: 0; display: grid; }
.rk > li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 52px minmax(78px, auto); align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.rk-cab { padding: 0 4px 6px !important; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-strong, var(--border)) !important; }
.rk-cab span:nth-child(n+3) { text-align: right; }
.rk-pos { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--surface-2); color: var(--text-muted); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-fila.top .rk-pos { background: var(--accent-solid); color: #fff; }
.rk-main { min-width: 0; display: grid; gap: 5px; }
.rk-nom { font-size: 14.5px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.rk-nom small { font-weight: 500; color: var(--text-muted); }
.rk-barra { display: block; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.rk-barra u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4d55a8, #8a6fd6); text-decoration: none; }
.rk-cant { text-align: right; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-imp { text-align: right; font-size: 13.5px; font-weight: 600; color: var(--text-soft, var(--text-muted)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-total { border-bottom: 0 !important; background: var(--surface-2); border-radius: 12px; }
.rk-total b:nth-child(2) { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.rk-total .rk-imp { color: var(--text); font-weight: 800; }
@media (max-width: 640px) { .rk > li { grid-template-columns: 26px minmax(0, 1fr) 44px minmax(70px, auto); gap: 8px; padding: 8px 2px; } .rk-nom { font-size: 14px; } .rk-imp { font-size: 12.5px; } }
