/* ══════════════════════════════════════════════════════════════════
   FLOWY EN EL CELULAR — estilo app (26 oct 2026)
   Solo aplica en pantallas de hasta 768 px: el escritorio no cambia.
   Lo arma movil.js: saludo, tarjeta de ventas con los números,
   accesos rápidos, barra inferior con "+" al centro y menú lateral.
   ══════════════════════════════════════════════════════════════════ */

.fm-tabbar, .fm-solo-movil, .fm-saludo, .fm-perfil-card, .fm-home, .fm-chev, .drawer-icon .fm-ic-linea { display: none; }

@media (max-width: 768px) {
  :root { --fm-sombra: 0 4px 20px rgba(30,64,175,.07); --fm-linea: color-mix(in srgb, var(--border) 70%, transparent); }
  /* 29 oct 2026 — En Android no se podía deslizar con un dedo (sí con dos).
     Causa: overflow-x:hidden en html Y body convierte el body en una caja con
     scroll propio, y overscroll-behavior:none en esa caja impedía pasarle el
     deslizamiento a la página. Ahora: html recorta y bloquea el "jalar para
     recargar"; body usa clip, que recorta sin crear una caja con scroll. */
  html { overflow-x: hidden; overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
  body { overflow-x: clip; -webkit-tap-highlight-color: transparent; }
  .fm-svg { width: 24px; height: 24px; display: block; }

  /* ── Barra de arriba ── */
  .topbar {
    position: sticky; top: 0; z-index: 150; display: flex; align-items: center;
    padding: env(safe-area-inset-top) 16px 0 !important; height: auto !important; min-height: calc(58px + env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 92%, transparent) !important; border-bottom: 0 !important;
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  }
  .topbar .menu-btn, .topbar #tema-btn, .topbar .user-avatar, #topbar-sync-badges { display: none !important; }
  .topbar .app-name { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -.4px; }
  .topbar .topbar-icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg2); color: var(--text); box-shadow: var(--fm-sombra); font-size: 1.05rem; }
  #notif-badge { top: 4px !important; right: 4px !important; min-width: 12px; width: 12px !important; height: 12px !important; font-size: 0 !important; border: 2px solid var(--bg2); }
  #notif-dropdown { position: fixed !important; top: calc(70px + env(safe-area-inset-top)) !important; left: 12px; right: 12px !important; width: auto !important; max-height: 70vh !important; }

  /* En Inicio: la barra es el saludo (foto, "Hola," nombre y tienda) y se va al bajar */
  body.fm-en-inicio .topbar { position: relative; background: var(--bg) !important; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: calc(env(safe-area-inset-top) + 14px) !important; padding-bottom: 6px !important; }
  body.fm-en-inicio .topbar .app-name { display: none; }
  body.fm-en-inicio .fm-saludo { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .fm-saludo-av {
    width: 62px; height: 62px; border-radius: 50%; flex: none; overflow: hidden; background: var(--bg3); color: var(--muted);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent);
  }
  .fm-saludo-av img { width: 100%; height: 100%; object-fit: cover; }
  .fm-saludo-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
  .fm-saludo-txt small { font-size: 1rem; color: var(--muted); font-weight: 500; }
  .fm-saludo-txt b { font-size: 1.85rem; font-weight: 800; color: var(--text); letter-spacing: -.8px; }
  .fm-saludo-txt em { font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58vw; }

  /* ── Contenido ── */
  .main { padding: 10px 16px calc(100px + env(safe-area-inset-bottom)); }
  .card { border-radius: 22px; padding: 1.1rem; border: 1px solid var(--fm-linea); box-shadow: var(--fm-sombra); }
  input, select, textarea, .form-input { font-size: 16px !important; }
  button, .btn, .drawer-item, .fm-tab, .fm-acceso { touch-action: manipulation; }
  .btn:active, .fm-acceso:active, .fm-tab:active { transform: scale(.97); }

  /* ── Barra de navegación inferior ── */
  .fm-tabbar {
    display: flex; align-items: flex-end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--bg2);
    border-radius: 24px 24px 0 0; box-shadow: 0 -6px 26px rgba(15,23,42,.08);
  }
  .fm-tab {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative;
    padding: 6px 2px 0; border: 0; background: none; font: inherit; font-size: .74rem; font-weight: 500; color: var(--muted); cursor: pointer;
  }
  .fm-tab .fm-ic { height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
  .fm-tab.active { color: var(--blue); font-weight: 700; }
  .fm-tab.active::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 0 0 4px 4px; background: var(--blue); }
  .fm-tab .fm-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .fm-tab.fm-centro .fm-ic {
    width: 62px; height: 62px; margin-top: -36px; border-radius: 50%; color: #fff; font-size: 1.6rem;
    background: linear-gradient(145deg, #4f8bff, #2563eb); box-shadow: 0 10px 24px rgba(37,99,235,.42), 0 0 0 6px var(--bg2);
  }
  .fm-tab.fm-centro::before { display: none; }
  .fm-badge {
    position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800; display: none; align-items: center; justify-content: center; border: 2px solid var(--bg2);
  }
  .fm-badge.on { display: flex; }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }

  /* ── Menú lateral (se abre con "Más") ── */
  .drawer {
    top: 0 !important; left: 0 !important; height: 100% !important; width: min(84vw, 340px) !important;
    transform: translateX(-102%) !important; transition: transform .28s cubic-bezier(.2,.8,.2,1) !important;
    background: var(--bg) !important; border-right: 0; border-radius: 0 28px 28px 0; z-index: 260;
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto;
  }
  .drawer.open { transform: translateX(0) !important; box-shadow: 10px 0 40px rgba(15,23,42,.18) !important; }
  .drawer-back { z-index: 250; background: rgba(15,23,42,.45); }
  .drawer .drawer-head { display: none !important; }
  .fm-perfil-card { display: block; background: var(--bg2); border-radius: 22px; padding: 18px; box-shadow: var(--fm-sombra); }
  .fm-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.12rem; color: var(--text); }
  .fm-pc-top b { font-weight: 800; }
  .fm-pc-tienda { display: flex; align-items: center; gap: 14px; margin-top: 16px; min-width: 0; }
  .fm-pc-av { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--bg3); color: var(--text); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .fm-pc-av img { width: 100%; height: 100%; object-fit: cover; }
  .fm-pc-txt { min-width: 0; display: flex; flex-direction: column; }
  .fm-pc-txt b { font-size: 1.05rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fm-pc-txt small { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fm-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
  .fm-pill-verde { background: color-mix(in srgb, #22c55e 18%, var(--bg2)); color: #15803d; }
  .drawer .drawer-section { display: block !important; font-size: .76rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); padding: 24px 10px 6px; }
  .drawer .drawer-section[style*="display: none"], .drawer .drawer-section[style*="display:none"] { display: none !important; }
  .drawer .drawer-item {
    display: flex !important; align-items: center; gap: 16px; padding: 14px 10px !important; margin: 0 !important;
    justify-content: flex-start !important; border-left: 0 !important; border-radius: 14px; background: none !important;
    font-size: 1.02rem; font-weight: 500; color: var(--text) !important;
  }
  .drawer .drawer-item[style*="display: none"], .drawer .drawer-item[style*="display:none"] { display: none !important; }
  .drawer .drawer-item:active { background: var(--bg3) !important; }
  .drawer .drawer-icon { width: 26px; display: flex; color: var(--text); }
  .drawer .drawer-icon > i { display: none; }
  .drawer .drawer-icon .fm-ic-linea { display: block; }
  .drawer .drawer-item:hover .drawer-icon { transform: none; }
  .drawer .drawer-label { display: inline !important; flex: 1; }
  .drawer .fm-chev { display: block; color: var(--muted2, #94a3b8); }
  .drawer .fm-chev .fm-svg { width: 20px; height: 20px; }
  .drawer .drawer-item.active { color: var(--blue) !important; font-weight: 700; }
  .drawer .drawer-item.active .drawer-icon { color: var(--blue); }
  .drawer .drawer-item[onclick*="cerrarSesion"] { color: var(--red) !important; }
  .drawer .drawer-item[onclick*="cerrarSesion"] .drawer-icon { color: var(--red); }
  .drawer .fm-solo-movil { display: flex; }

  /* ── Inicio del vendedor ── */
  body.fm-inicio-vendedor #hero-vendedor, body.fm-inicio-vendedor #accesos-vendedor { display: none !important; }
  .fm-home { display: block; }
  .fm-ventas {
    display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 8px; background: linear-gradient(135deg, var(--bg2) 55%, color-mix(in srgb, var(--blue) 9%, var(--bg2)) 100%);
    border: 1px solid var(--fm-linea); border-radius: 24px; padding: 18px 18px 16px; box-shadow: var(--fm-sombra); margin-top: 6px;
  }
  .fm-ventas-izq { flex: 1; min-width: 0; }
  .fm-lbl { font-size: .95rem; color: var(--muted); font-weight: 500; }
  .fm-monto-fila { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
  .fm-monto { font-size: 2.15rem; font-weight: 800; color: var(--text); letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .fm-ojo { border: 0; background: none; color: var(--blue); font-size: 1.2rem; padding: 4px; }
  .fm-tend { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    background: color-mix(in srgb, #22c55e 14%, var(--bg2)); color: #15803d; }
  .fm-tend.baja { background: color-mix(in srgb, #ef4444 12%, var(--bg2)); color: #b91c1c; }
  body.fw-dark .fm-tend { color: #4ade80; } body.fw-dark .fm-tend.baja { color: #f87171; }
  .fm-ventas-pie { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: .84rem; color: var(--muted); white-space: nowrap; min-width: 0; }
  @media (max-width: 380px) { .fm-ventas-pie { font-size: .76rem; gap: 6px; } }
  .fm-ventas-pie b { color: var(--text); font-weight: 700; margin-left: 4px; }
  .fm-ventas-pie i { width: 1px; height: 22px; background: var(--border); }
  .fm-ventas-der { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex: none; }
  .fm-detalle { color: var(--blue); font-weight: 700; font-size: .9rem; white-space: nowrap; cursor: pointer; }
  .fm-barras { width: 84px; height: 72px; margin-top: 6px; filter: drop-shadow(0 8px 12px rgba(59,130,246,.25)); }
  .fm-oculto #fm-ventas { filter: blur(10px); user-select: none; }

  .verde { background: color-mix(in srgb, #22c55e 15%, var(--bg2)); color: #16a34a; }
  .morado { background: color-mix(in srgb, #8b5cf6 14%, var(--bg2)); color: #7c3aed; }
  .azul { background: color-mix(in srgb, var(--blue) 14%, var(--bg2)); color: #2563eb; }
  .rojo { background: color-mix(in srgb, #ef4444 13%, var(--bg2)); color: #ef4444; }

  /* Accesos rápidos: una sola tarjeta con 4 columnas */
  .fm-accesos {
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 14px; padding: 16px 4px 14px;
    background: var(--bg2); border: 1px solid var(--fm-linea); border-radius: 22px; box-shadow: var(--fm-sombra);
  }
  .fm-acceso {
    background: none; border: 0; padding: 0 4px; display: flex; flex-direction: column; align-items: center; gap: 10px;
    font: inherit; font-size: .8rem; font-weight: 500; color: var(--text); line-height: 1.2; text-align: center;
  }
  .fm-acceso + .fm-acceso { border-left: 1px solid var(--border); }
  .fm-a-ic { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
  .fm-repml { margin-top: 14px; padding: 16px 18px 14px; background: var(--bg2); border: 1px solid var(--fm-linea); border-radius: 22px; box-shadow: var(--fm-sombra); }
  .fm-repml-tit { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 10px; }
  .fm-repml-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fef9c3; color: #a16207; font-size: .95rem; }
  .fm-repml-cont { font-size: .82rem; color: var(--muted); }
  .fm-repml-cont > div[style*="max-width"] { max-width: none !important; }

  /* Tarjetas que ya existían en Inicio: mismo estilo */
  #atencion-card, #actividad-reciente-card, #estado-productos-card, #page-inicio .reputacion-scheduler-grid > div, #page-inicio .admin-corp .ac-card {
    border: 1px solid var(--fm-linea) !important; border-radius: 22px !important; box-shadow: var(--fm-sombra) !important;
  }
  body.fm-inicio-vendedor #atencion-card { margin-top: 16px; }
  body.fm-en-inicio #hero-admin .ac-hero-band { border-radius: 22px; }

  /* Tarjetas que se salían de la pantalla */
  .actividad-estado-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .actividad-estado-grid > * { min-width: 0; }
  #actividad-reciente-lista * { min-width: 0; }
  .table-wrap, .tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Pestañas internas deslizables */
  #admin-tabs-bar, .tabs { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  #admin-tabs-bar::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  #admin-tabs-bar .tab, .tabs .tab { flex: none; white-space: nowrap; }

  /* Preguntas */
  .pregunta-card { border: 1px solid var(--fm-linea) !important; border-radius: 22px !important; box-shadow: var(--fm-sombra) !important; }
  .respuesta-input { flex-wrap: wrap; gap: 8px; }
  .respuesta-input .form-input { flex: 1 1 100%; }
  .respuesta-input .btn { flex: 1; min-height: 46px; border-radius: 14px; }
  .pregunta-producto > div { flex-wrap: wrap; row-gap: 8px; }
  .pregunta-producto > div > span:first-child {
    flex: 1 1 100%; white-space: normal !important; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
}

/* ══════════════════════════════════════════════════════════════════
   REPORTES (vendedor) — celular y computador (26 oct 2026)
   Resumen con la utilidad grande, estados en una tarjeta, totales de la
   gráfica en bloques y las ventas del mes como lista.
   ══════════════════════════════════════════════════════════════════ */
:root { --fm-sombra: 0 4px 20px rgba(30,64,175,.07); --fm-linea: color-mix(in srgb, var(--border) 70%, transparent); }
.fm-lbl { font-size: .95rem; color: var(--muted); font-weight: 500; }

body.fm-reportes #page-reportes > .stat-row { display: none !important; }
.fm-rep {
  display: block; background: linear-gradient(135deg, var(--bg2) 55%, color-mix(in srgb, #22c55e 8%, var(--bg2)) 100%);
  border: 1px solid var(--fm-linea); border-radius: 24px; padding: 18px; box-shadow: var(--fm-sombra); margin: 6px 0 14px;
}
.fm-rep-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.fm-rep-util { font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; color: #16a34a; font-variant-numeric: tabular-nums; }
.fm-rep-util.neg { color: #dc2626; }
.fm-rep-pill { padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: color-mix(in srgb, #22c55e 14%, var(--bg2)); color: #15803d; }
.fm-rep-pill:empty { display: none; }
.fm-rep-pie { display: grid; grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr); gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.fm-rep-pie > i { background: var(--border); }
.fm-rep-pie div { display: flex; flex-direction: column; min-width: 0; }
.fm-rep-pie span { font-size: .78rem; color: var(--muted); }
.fm-rep-pie b { font-size: 1.12rem; font-weight: 800; color: var(--text); margin: 2px 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fm-rep-pie small { font-size: .76rem; color: var(--muted); }

/* Estados de envío: una sola tarjeta con 5 columnas */
#rp2-estados {
  grid-template-columns: repeat(5, minmax(0,1fr)) !important; gap: 0 !important; padding: 14px 2px;
  background: var(--bg2); border: 1px solid var(--fm-linea); border-radius: 22px; box-shadow: var(--fm-sombra); margin-bottom: 14px !important;
}
#rp2-estados .rp2-est { flex-direction: column; align-items: center; text-align: center; gap: 6px; background: none !important; border: 0 !important; border-radius: 0; padding: 0 2px; }
#rp2-estados .rp2-est + .rp2-est { border-left: 1px solid var(--border) !important; }
#rp2-estados .rp2-est i { font-size: 1rem; }
#rp2-estados .rp2-est b { font-size: 1.25rem; }
#rp2-estados .rp2-est span { font-size: .68rem; white-space: nowrap; }

/* Gráfica: totales en dos columnas y gráfica más baja */
#page-reportes .rp2-totales { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px 14px !important; font-size: .78rem !important; }
#page-reportes .rp2-totales span { display: flex; flex-direction: column; }
#page-reportes .rp2-totales b { font-size: .95rem; }
#page-reportes canvas#grafica-ventas-reportes { max-height: 230px; }
#page-reportes div:has(> canvas#grafica-ventas-reportes) { height: 230px !important; }
#page-reportes .rp2-rangos { margin-left: auto; }

/* Ventas del mes como lista */
.fm-ventas-lista { display: flex; flex-direction: column; gap: 8px; }
.fm-venta {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--fm-linea); border-radius: 16px; padding: 10px 12px;
}
.fm-venta-img { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.fm-venta-img img { width: 100%; height: 100%; object-fit: contain; }
.fm-venta-cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fm-venta-t { font-size: .88rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-venta-m { font-size: .74rem; color: var(--muted); }
.fm-venta-m em { font-style: normal; font-weight: 600; background: none !important; }
.fm-venta-m em.verde { color: #16a34a; } .fm-venta-m em.azul { color: #2563eb; } .fm-venta-m em.morado { color: #7c3aed; }
.fm-venta-n { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.fm-venta-n b { font-size: .92rem; font-weight: 800; white-space: nowrap; }
.fm-venta-n small { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.fm-venta-n .pos { color: #16a34a; } .fm-venta-n .neg { color: #dc2626; } .fm-venta-n .desc { color: #d97706; }


/* Columnas extra de cada venta: solo en computador */
.fm-venta-col { display: none; }

@media (min-width: 769px) {
  body.fm-reportes #page-reportes.active { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
  body.fm-reportes #page-reportes > * { grid-column: 1 / -1; }
  body.fm-reportes #page-reportes > #fm-rep { grid-column: 1; margin: 0; padding: 24px 26px; }
  body.fm-reportes #page-reportes > #rp2-estados { grid-column: 2; margin: 0 !important; padding: 20px 6px; align-items: center; }
  body.fm-reportes #page-reportes > .card { margin: 0; border-radius: 22px; border: 1px solid var(--fm-linea); box-shadow: var(--fm-sombra); padding: 1.4rem 1.5rem; }
  .fm-rep-util { font-size: 2.7rem; }
  .fm-rep-pie b { font-size: 1.35rem; }
  #rp2-estados .rp2-est i { font-size: 1.35rem; }
  #rp2-estados .rp2-est b { font-size: 2rem; }
  #rp2-estados .rp2-est span { font-size: .85rem; }
  body.fm-reportes #page-reportes .rp2-totales { grid-template-columns: repeat(7, minmax(0,1fr)) !important; gap: 10px !important; }
  body.fm-reportes #page-reportes .rp2-totales span { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
  body.fm-reportes #page-reportes .rp2-totales b { font-size: 1.05rem; }
  body.fm-reportes #page-reportes canvas#grafica-ventas-reportes { max-height: 300px; }
  body.fm-reportes #page-reportes div:has(> canvas#grafica-ventas-reportes) { height: 300px !important; }
  .fm-venta { display: grid; grid-template-columns: 56px minmax(0,1fr) 130px 130px 130px 20px; gap: 16px; padding: 12px 16px; }
  .fm-venta-img { width: 56px; height: 56px; }
  .fm-venta-t { font-size: .95rem; -webkit-line-clamp: 1; }
  .fm-venta-n { display: none; }
  .fm-venta-col { display: flex; flex-direction: column; align-items: flex-end; font-size: .74rem; color: var(--muted); }
  .fm-venta-col b { font-size: .98rem; font-weight: 800; color: var(--text); white-space: nowrap; }
  .fm-venta-col b.pos { color: #16a34a; } .fm-venta-col b.neg { color: #dc2626; } .fm-venta-col b.desc { color: #d97706; font-size: .85rem; }
  .fm-venta-chev { display: block !important; color: var(--muted2, #94a3b8); }
  .fm-venta:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--border)); background: var(--bg2); }
}
.fm-venta-chev { display: none; }

/* ══════════════════════════════════════════════════════════════════
   INVENTARIO — Mi Stock (26 oct 2026), celular y computador.
   Tarjeta con foto, título, MCO y números; usa los datos del catálogo
   cuando el ASIN coincide.
   ══════════════════════════════════════════════════════════════════ */
.inv2-card { background: var(--bg2); border: 1px solid var(--fm-linea); border-radius: 22px; box-shadow: var(--fm-sombra); padding: 18px; margin-bottom: 14px; }
.inv2-top { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.inv2-img { width: 120px; height: 120px; flex: none; border-radius: 16px; background: #fff; border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.6rem; }
.inv2-img img { width: 100%; height: 100%; object-fit: contain; }
.inv2-info { flex: 1; min-width: 0; }
.inv2-k { font-size: .76rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.inv2-titulo { font-size: .95rem; color: var(--text); line-height: 1.4; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inv2-ids { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .92rem; color: var(--text); }
.inv2-mut { color: var(--muted); }
.inv2-nums { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.inv2-nums > div { background: var(--bg); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.inv2-nums span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.inv2-nums b { font-size: .98rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.inv2-acciones { display: flex; align-items: center; gap: 10px; padding-top: 14px; flex-wrap: wrap; }
.inv2-logo { width: 52px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); }
.inv2-logo img { width: 38px; object-fit: contain; }
.inv2-amz i { font-size: 1.35rem; color: #111827; }
body.fw-dark .inv2-amz i { color: #f8fafc; }
.inv2-eliminar { border: 0; border-radius: 12px; background: color-mix(in srgb, #ef4444 12%, var(--bg2)); color: #dc2626; font: inherit; font-weight: 700; font-size: .88rem; padding: 12px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.inv2-estado { margin-left: auto; border-radius: 999px; padding: 9px 16px; font-size: .84rem; font-weight: 700; border: 1.5px solid; }
.inv2-estado.ok { color: #16a34a; border-color: color-mix(in srgb, #16a34a 45%, transparent); }
.inv2-estado.pausa { color: #d97706; border-color: color-mix(in srgb, #d97706 45%, transparent); }
.inv2-estado.mal { color: #dc2626; border-color: color-mix(in srgb, #dc2626 45%, transparent); }
@media (max-width: 768px) {
  .inv2-card { padding: 14px; }
  .inv2-top { gap: 12px; }
  .inv2-img { width: 84px; height: 84px; }
  .inv2-titulo { font-size: .88rem; }
  .inv2-ids { font-size: .82rem; gap: 8px; }
  .inv2-nums { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
  .inv2-nums > div { grid-column: span 2; padding: 8px 6px; }
  .inv2-nums > div:nth-child(n+4) { grid-column: span 3; }
  .inv2-nums b { font-size: .86rem; }
  .inv2-eliminar { flex: 1; justify-content: center; }
  .inv2-estado { margin-left: 0; width: 100%; text-align: center; }
}

/* Editar producto del stock */
.inv2-card { position: relative; }
.inv2-editar { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blue3); color: var(--blue); cursor: pointer; font-size: .95rem; }
.inv2-editar:hover { background: var(--blue); color: #fff; }
.inv2-top .inv2-info { padding-right: 46px; }
.inv2-form { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; gap: 12px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--border); }
.inv2-form label { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.inv2-form input { width: 100%; min-width: 0; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .95rem; font-weight: 600; color: var(--text); background: var(--bg2); }
.inv2-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue3); }
.inv2-form-btns { display: flex; gap: 8px; }
.inv2-form-btns button { border: 0; border-radius: 12px; padding: 11px 16px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.inv2-cancelar { background: var(--bg3); color: var(--text); }
.inv2-guardar { background: var(--blue); color: #fff; }
.inv2-guardar:disabled { opacity: .6; }
@media (max-width: 768px) {
  .inv2-editar { top: 12px; right: 12px; width: 36px; height: 36px; }
  .inv2-form { grid-template-columns: 1fr 1fr; }
  .inv2-form label:nth-child(3) { grid-column: 1 / -1; }
  .inv2-form-btns { grid-column: 1 / -1; }
  .inv2-form-btns button { flex: 1; min-width: 0; }
}


/* ══════════════════════════════════════════════════════════════════
   REPORTES (admin) — celular y computador (27 oct 2026)
   Mismo estilo que Reportes del vendedor: resumen grande y listas.
   ══════════════════════════════════════════════════════════════════ */
.fm-adm-cab .fm-detalle { color: var(--blue); font-weight: 700; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.fm-adm-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#admin-dashboard > .fm-rep .fm-rep-util { color: var(--text); }
#admin-dashboard > .card { border-radius: 22px; border: 1px solid var(--fm-linea); box-shadow: var(--fm-sombra); }
.fm-venta-fija { cursor: default; }
.fm-ini { background: color-mix(in srgb, var(--blue) 12%, var(--bg2)) !important; color: var(--blue) !important; border: 0 !important; font-weight: 800; font-size: 1.15rem; }
button.fm-venta { cursor: pointer; }
.pv-det { background: var(--bg); border: 1px solid var(--fm-linea); border-radius: 16px; padding: 14px 16px; }
@media (min-width: 769px) {
  #admin-dashboard > .fm-rep { padding: 24px 26px; margin: 0 0 16px; }
  #admin-dashboard > .card { padding: 1.4rem 1.5rem; }
}
