/* Demand Panel — estilos de la pestaña "metrics". Sólo variables de app.css (claro y oscuro salen solos). */
/* Prefijo mt-: nada de acá pisa a otra pestaña. Teléfono primero (390 px); la compu desde 900 px. */

.mt-subs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-sub, .mt-per { display: flex; min-width: 0; max-width: 100%; }
/* Período a la punta; el desplegable de juegos ("Por juego") queda pegado a las subpestañas. */
.mt-per { margin-inline-start: auto; }
@media (max-width: 639px) {
  .mt-sub, .mt-per { width: 100%; }
  .mt-sub .seg, .mt-per .seg { width: 100%; }
  .mt-sub .seg button, .mt-per .seg button { flex: 1; justify-content: center; }
}
.mt-upd { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

/* KPIs */
.mt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-kpi { gap: 6px; }
.mt-kpi-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt-kpi-h .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-kpi-i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.mt-kpi-i .ic { width: 16px; height: 16px; }
.mt-kpi small { min-height: 18px; }
/* Valor + cambio en una línea (el cambio a la punta); si no entra, el cambio baja debajo del valor. */
.mt-kpi-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.mt-kpi-v > b { min-width: 0; }
.mt-kpi-v > .mt-delta { margin-inline-start: auto; }
.mt-delta { font-weight: 600; }
.mt-strk { gap: 4px; }

/* Grillas */
.mt-g2, .mt-g3, .mt-cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mt-tot { font-size: 15px; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-none { padding: 24px 0; text-align: center; font-size: 13px; }
.mt-none.sm { padding: 10px 0 0; text-align: start; }
.mt-foot { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.mt-foot .ic { margin-top: 2px; }
.mt-empty-a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Barras de reparto (una por fila: logo, nombre, monto, % y la barra) */
.mt-share { display: flex; flex-direction: column; gap: 4px; }
.mt-share li { display: flex; align-items: center; gap: 10px; padding: 6px 6px; margin: 0 -6px; border-radius: 10px; min-width: 0; }
.mt-share li.click { cursor: pointer; }
.mt-share li.click:hover { background: var(--surface-2); }
.mt-sh-b { flex: 1; min-width: 0; }
.mt-sh-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.mt-sh-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.mt-sh-v { display: inline-flex; align-items: baseline; gap: 8px; flex-shrink: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mt-sh-v b { font-weight: 600; }
.mt-sh-v em { font-style: normal; color: var(--muted); font-size: 12px; min-width: 34px; text-align: end; }
.mt-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mt-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.mt-bar.sm { height: 6px; width: 64px; flex-shrink: 0; }

/* Tasas (aceptación, cancelación) */
.mt-rates { display: flex; flex-direction: column; gap: 14px; }
.mt-rate { display: flex; flex-direction: column; gap: 6px; }
.mt-rate-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.mt-rate-t b { font-size: 17px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mt-rate small { font-size: 12px; }

/* Strikes */
.mt-strikes { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.mt-strike-dots { display: flex; gap: 6px; flex-shrink: 0; }
.mt-strike-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-2); background: var(--surface); }
.mt-strike-dots i.on { background: var(--red); border-color: var(--red); }
.mt-strikes b { font-size: 14px; }

/* Categorías */
.mt-cat { display: flex; flex-direction: column; gap: 14px; }
.mt-cat.off { background: var(--surface-2); }
.mt-cat-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mt-cat-h > div { flex: 1; min-width: 0; }
.mt-cat-h h3 { font-size: 15px; font-weight: 650; }
.mt-cat-h small { font-size: 12px; }
.mt-cat-v { font-size: 17px; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-cat-i { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.mt-cat-i .ic { width: 17px; height: 17px; }
.mt-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-mini > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mt-cat.off .mt-mini > div { background: var(--surface); }
.mt-mini b { font-size: 16px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mt-sub-h { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: -6px; }

/* Por juego: el desplegable de juegos, en la fila de las subpestañas (la caja no recorta el desplegable). */
.mt-gchips { display: flex; min-width: 0; }
@media (max-width: 768px) { .mt-gchips { width: 100%; } }

/* Detalle de un juego */
.mt-gd { display: flex; flex-direction: column; gap: 16px; }
.mt-gd-h { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mt-gd-t { flex: 1; min-width: 0; }
.mt-gd-t h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mt-gd-share { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.mt-gd-share b { font-size: 22px; font-weight: 700; color: var(--accent-ink); font-family: var(--mono); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mt-gd-share small { font-size: 12px; }
.mt-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-cell { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mt-cell b { font-size: 18px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mt-cell small { font-size: 12px; }
.mt-cell .trend { margin-top: 2px; }
.mt-u { font-size: 12px; font-weight: 500; }

/* Todos los juegos: filas que en el teléfono son tarjetas y en la compu una tabla */
.mt-tblc { padding: 0; }
.mt-tbl-h { padding: 16px 16px 12px; }
.mt-tbl-h h3 { font-size: 15px; font-weight: 650; }
.mt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 18px; grid-template-areas: 'g g g ch' 'a b c ch' 'd e f ch'; gap: 8px 10px; align-items: center; width: 100%; text-align: start; padding: 14px 16px; border-top: 1px solid var(--border); }
.mt-row:hover { background: var(--surface-2); }
.mt-row-h { display: none; }
.mt-c-g { grid-area: g; display: flex; align-items: center; gap: 10px; min-width: 0; }
.mt-c-gn { display: flex; flex-direction: column; min-width: 0; }
.mt-c-gn b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-c-gn small { font-size: 12px; }
.mt-c { font-size: 13px; font-family: var(--mono); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mt-c::before { content: attr(data-l); font-size: 11px; color: var(--muted); font-weight: 500; }
.mt-c-s { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1px 6px; }
.mt-c-s::before { width: 100%; }
.mt-c-s .mt-bar.sm { width: 40px; }
.mt-chev { grid-area: ch; }

@media (min-width: 640px) {
  .mt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .mt-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mt-g2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
  .mt-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .mt-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .mt-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-tbl-h { padding: 18px 20px 14px; }
  .mt-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .9fr) 18px; grid-template-areas: none; padding: 12px 20px; gap: 12px; }
  .mt-row > * { grid-area: auto; }
  .mt-row-h { display: grid; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
  .mt-row-h:hover { background: var(--surface-2); }
  .mt-row .mt-c { text-align: end; align-items: flex-end; }
  .mt-row .mt-c::before { display: none; }
  .mt-row .mt-c-s { justify-content: flex-end; flex-wrap: nowrap; align-items: center; }
  .mt-row .mt-c-s .mt-bar.sm { width: 64px; }
  .mt-row-h span.mt-c { display: block; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .mt-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-cats { grid-template-columns: minmax(0, 1fr); }
  .mt-cats .mt-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mt-stk-a { display: inline-block; margin-top: 4px; font-size: 12.5px; } /* "Ver tus strikes" → Settings › Strikes (2026-11-23) */
