/* ==========================================================================
   ClickFix OPS Console v2 — capa visual completa (sobrescribe Corona)
   ========================================================================== */

body.cf-v2{
  --v2-bg:#060a13;
  --v2-bg-2:#0a1120;
  --v2-panel:rgba(13,21,38,.82);
  --v2-panel-solid:#0d1526;
  --v2-panel-2:#101a2e;
  --v2-line:rgba(120,152,200,.16);
  --v2-line-strong:rgba(94,174,255,.38);
  --v2-text:#e9efff;
  --v2-muted:#93a4c2;
  --v2-dim:#66789a;
  --v2-accent:#2fe0b0;
  --v2-accent-2:#3b7bff;
  --v2-danger:#ff5f78;
  --v2-warn:#ffb454;
  --v2-ok:#39d98a;
  --v2-radius:18px;
  --v2-radius-sm:12px;
  --v2-shadow:0 30px 80px -40px rgba(0,0,0,.95);
  --v2-sidebar:272px;

  /* Tokens heredados que usa el markup antiguo */
  --bg:var(--v2-bg);
  --bg2:var(--v2-bg-2);
  --card:var(--v2-panel-solid);
  --line:var(--v2-line);
  --txt:var(--v2-text);
  --text:var(--v2-text);
  --text2:var(--v2-muted);
  --muted:var(--v2-muted);
  --dim:var(--v2-dim);
  --accent:var(--v2-accent);
  --brand:var(--v2-accent-2);
  --glass:rgba(16,26,46,.72);
  --glass-border:var(--v2-line);
  --radius:var(--v2-radius);

  font-family:'Inter','Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:var(--v2-bg) !important;
  color:var(--v2-text);
  min-height:100vh;
}
body.cf-v2::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 12% -8%,rgba(59,123,255,.16),transparent 60%),
    radial-gradient(760px 480px at 92% 4%,rgba(47,224,176,.10),transparent 62%),
    linear-gradient(180deg,#060a13 0%,#070d18 45%,#060a13 100%);
}
body.cf-v2::after{
  content:'';
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.35;
  background-image:
    linear-gradient(rgba(120,160,220,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(120,160,220,.045) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(circle at 50% 0%,#000 0%,transparent 78%);
}
body.cf-v2 h1,body.cf-v2 h2,body.cf-v2 h3,body.cf-v2 h4,body.cf-v2 h5,
body.cf-v2 .card-title,body.cf-v2 .event-title{
  font-family:'Space Grotesk','Sora',sans-serif;
  letter-spacing:-.01em;
  color:var(--v2-text);
}
body.cf-v2 .mut,body.cf-v2 .text-muted{color:var(--v2-muted) !important}
body.cf-v2 .mono{font-family:'JetBrains Mono',ui-monospace,monospace}

/* ---------- Layout ---------- */
body.cf-v2 .container-scroller{display:block;padding-top:0}
body.cf-v2 .page-body-wrapper{
  margin-left:var(--v2-sidebar);
  width:calc(100% - var(--v2-sidebar));
  max-width:calc(100% - var(--v2-sidebar));
  padding-top:0;
  min-height:100vh;
  transition:margin-left .22s ease,width .22s ease;
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  margin-right:0;
}
body.cf-v2 .content-wrapper,body.cf-v2 .main-panel{min-width:0;max-width:100%;overflow-x:hidden;box-sizing:border-box}
body.cf-v2 .legacy-table-wrap{overflow-x:auto}
body.cf-v2 .v2-topbar{width:100%;flex:0 0 auto}
body.cf-v2 .main-panel{width:100%;flex:1 1 auto;min-height:0;background:transparent}
body.cf-v2 .content-wrapper{
  background:transparent !important;
  padding:22px 26px 64px;
  min-height:calc(100vh - 68px);
}
body.cf-v2 .content-wrapper > .wrap{max-width:none;padding:0}
body.cf-v2.v2-collapsed{--v2-sidebar:88px}
body.cf-v2.v2-collapsed .v2-brand-text,
body.cf-v2.v2-collapsed .v2-user-meta,
body.cf-v2.v2-collapsed .v2-user-badge,
body.cf-v2.v2-collapsed .v2-group-label,
body.cf-v2.v2-collapsed .v2-link-label,
body.cf-v2.v2-collapsed .v2-link-count,
body.cf-v2.v2-collapsed .v2-logout span,
body.cf-v2.v2-collapsed .v2-health span,
body.cf-v2.v2-collapsed .v2-health b{display:none}
body.cf-v2.v2-collapsed .v2-link{justify-content:center;padding:10px}
body.cf-v2.v2-collapsed .v2-collapse i{transform:rotate(180deg)}
body.cf-v2.v2-collapsed .v2-user{justify-content:center}
body.cf-v2.v2-collapsed .v2-logout-btn{justify-content:center}
body.cf-v2.v2-collapsed .v2-collapse{display:none}
body.cf-v2.v2-collapsed .v2-brand{justify-content:center;padding-left:0;padding-right:0}

/* ---------- Sidebar ---------- */
body.cf-v2 .v2-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:60;
  width:var(--v2-sidebar);
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 14px 14px;
  background:
    radial-gradient(420px 240px at 0% 0%,rgba(59,123,255,.16),transparent 70%),
    linear-gradient(180deg,rgba(9,15,28,.98),rgba(7,12,23,.98));
  border-right:1px solid var(--v2-line);
  box-shadow:24px 0 60px -50px #000;
  transition:width .22s ease,transform .22s ease;
  overflow:hidden;
}
body.cf-v2 .v2-brand{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px 12px;border-bottom:1px solid var(--v2-line)}
body.cf-v2 .v2-brand-link{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--v2-text)}
body.cf-v2 .v2-brand-mark{
  width:40px;height:40px;flex:0 0 40px;border-radius:13px;display:grid;place-items:center;
  font-size:1.35rem;color:#04121a;
  background:linear-gradient(140deg,var(--v2-accent),var(--v2-accent-2));
  box-shadow:0 12px 30px -12px rgba(47,224,176,.7);
}
body.cf-v2 .v2-brand-mark{
  background:#0b1220;border:1px solid var(--v2-line);box-shadow:none;padding:3px;overflow:hidden;
}
body.cf-v2 .v2-brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:8px;display:block}
body.cf-v2 .v2-brand-text{display:flex;flex-direction:column;line-height:1.05}
body.cf-v2 .v2-brand-text strong{font-family:'Space Grotesk',sans-serif;font-size:1.02rem;letter-spacing:.01em}
body.cf-v2 .v2-brand-text small{font-size:.56rem;letter-spacing:.22em;color:var(--v2-dim);font-weight:700}
body.cf-v2 .v2-collapse{
  width:30px;height:30px;border-radius:9px;border:1px solid var(--v2-line);
  background:rgba(255,255,255,.03);color:var(--v2-muted);cursor:pointer;
  display:grid;place-items:center;font-size:1rem;transition:.18s;
}
body.cf-v2 .v2-collapse:hover{color:var(--v2-text);border-color:var(--v2-line-strong)}
body.cf-v2 .v2-user{
  display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;
  background:linear-gradient(150deg,rgba(19,32,56,.85),rgba(12,20,36,.85));
  border:1px solid var(--v2-line);
}
body.cf-v2 .v2-user-avatar{
  position:relative;width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;
  font-weight:800;color:#04121a;background:linear-gradient(140deg,#8ea7ff,#2fe0b0);
}
body.cf-v2 .v2-user-avatar img{width:100%;height:100%;object-fit:cover;border-radius:12px}
body.cf-v2 .v2-user-dot{position:absolute;right:-2px;bottom:-2px;width:10px;height:10px;border-radius:50%;background:var(--v2-ok);border:2px solid #08101d}
body.cf-v2 .v2-user-meta{display:flex;flex-direction:column;min-width:0;line-height:1.15}
body.cf-v2 .v2-user-meta strong{font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cf-v2 .v2-user-meta small{font-size:.64rem;color:var(--v2-muted);text-transform:uppercase;letter-spacing:.08em}
body.cf-v2 .v2-user-badge{margin-left:auto;font-size:.52rem;font-weight:800;letter-spacing:.12em;color:var(--v2-accent);border:1px solid rgba(47,224,176,.35);background:rgba(47,224,176,.08);padding:3px 7px;border-radius:999px}
body.cf-v2 .v2-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:2px 2px 8px;display:flex;flex-direction:column;gap:16px}
body.cf-v2 .v2-nav::-webkit-scrollbar{width:6px}
body.cf-v2 .v2-nav::-webkit-scrollbar-thumb{background:rgba(120,160,220,.22);border-radius:99px}
body.cf-v2 .v2-group{display:flex;flex-direction:column;gap:3px}
body.cf-v2 .v2-group-label{font-size:.56rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--v2-dim);padding:0 10px 5px;white-space:nowrap}
body.cf-v2 .v2-link{
  position:relative;display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:11px;
  color:#b9c7e0;text-decoration:none;font-size:.82rem;font-weight:600;transition:.16s;
}
body.cf-v2 .v2-link:hover{background:rgba(255,255,255,.045);color:#fff}
body.cf-v2 .v2-link.is-active{
  color:#fff;background:linear-gradient(90deg,rgba(47,224,176,.16),rgba(59,123,255,.10));
  box-shadow:inset 0 0 0 1px rgba(47,224,176,.22);
}
body.cf-v2 .v2-link.is-active::before{
  content:'';position:absolute;left:-14px;top:8px;bottom:8px;width:3px;border-radius:0 4px 4px 0;
  background:linear-gradient(180deg,var(--v2-accent),var(--v2-accent-2));
}
body.cf-v2 .v2-link-icon{
  width:30px;height:30px;flex:0 0 30px;border-radius:9px;display:grid;place-items:center;
  font-size:1.02rem;color:var(--v2-muted);background:rgba(255,255,255,.03);border:1px solid transparent;transition:.16s;
}
body.cf-v2 .v2-link:hover .v2-link-icon{color:var(--v2-text)}
body.cf-v2 .v2-link.is-active .v2-link-icon{color:#04121a;background:linear-gradient(140deg,var(--v2-accent),#8ef0d5);border-color:transparent}
body.cf-v2 .v2-link-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cf-v2 .v2-link-count{margin-left:auto;font-size:.6rem;font-weight:800;color:#04121a;background:var(--v2-warn);border-radius:999px;padding:2px 7px}
body.cf-v2 .v2-sidebar-foot{border-top:1px solid var(--v2-line);padding-top:10px;display:flex;flex-direction:column;gap:8px}
body.cf-v2 .v2-health{display:flex;align-items:center;gap:7px;font-size:.62rem;color:var(--v2-muted);padding:0 6px}
body.cf-v2 .v2-health b{margin-left:auto;color:var(--v2-dim);font-weight:600}
body.cf-v2 .v2-health-dot{width:7px;height:7px;border-radius:50%;background:var(--v2-ok);box-shadow:0 0 0 4px rgba(57,217,138,.12)}
body.cf-v2 .v2-logout{margin:0}
body.cf-v2 .v2-logout-btn{
  width:100%;display:flex;align-items:center;gap:8px;justify-content:flex-start;
  padding:9px 10px;border-radius:10px;border:1px solid var(--v2-line);background:rgba(255,255,255,.02);
  color:var(--v2-muted);font-size:.78rem;font-weight:600;cursor:pointer;
}
body.cf-v2 .v2-logout-btn:hover{color:var(--v2-danger);border-color:rgba(255,95,120,.35);background:rgba(255,95,120,.07)}

/* ---------- Topbar ---------- */
body.cf-v2 .v2-topbar{
  position:sticky;top:0;z-index:50;height:68px;display:flex;align-items:center;gap:14px;
  padding:0 24px;border-bottom:1px solid var(--v2-line);
  background:rgba(6,11,21,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
body.cf-v2 .v2-icon-btn{
  width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;
  border:1px solid var(--v2-line);background:rgba(255,255,255,.025);color:var(--v2-muted);
  font-size:1.12rem;cursor:pointer;transition:.16s;
}
body.cf-v2 .v2-icon-btn:hover{color:var(--v2-text);border-color:var(--v2-line-strong);background:rgba(59,123,255,.08)}
body.cf-v2 .v2-menu-toggle{display:none}
body.cf-v2 .v2-top-logo{
  display:none;width:36px;height:36px;flex:0 0 36px;border-radius:10px;overflow:hidden;
  border:1px solid var(--v2-line);background:#0b1220;
}
body.cf-v2 .v2-top-logo img{width:100%;height:100%;object-fit:contain;display:block}
body.cf-v2 .v2-breadcrumb{display:flex;align-items:center;gap:7px;font-size:.78rem;color:var(--v2-muted);white-space:nowrap}
body.cf-v2 .v2-breadcrumb i{font-size:.9rem;color:var(--v2-dim)}
body.cf-v2 .v2-breadcrumb strong{color:var(--v2-text);font-weight:700}
body.cf-v2 .v2-crumb-root{color:var(--v2-dim)}
body.cf-v2 .v2-search{
  margin:0 8px;display:flex;align-items:center;gap:10px;flex:1 1 auto;max-width:460px;min-width:120px;
  height:40px;padding:0 12px;border-radius:12px;cursor:pointer;
  border:1px solid var(--v2-line);background:rgba(255,255,255,.025);color:var(--v2-dim);
  font-size:.78rem;transition:.16s;
}
body.cf-v2 .v2-search:hover{border-color:var(--v2-line-strong);color:var(--v2-muted);background:rgba(59,123,255,.06)}
body.cf-v2 .v2-search span{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cf-v2 .v2-search kbd,body.cf-v2 .v2-palette kbd{
  font-family:'JetBrains Mono',monospace;font-size:.62rem;padding:2px 6px;border-radius:6px;
  border:1px solid var(--v2-line);background:rgba(255,255,255,.04);color:var(--v2-muted);
}
body.cf-v2 .v2-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
body.cf-v2 .v2-quick{position:relative}
body.cf-v2 .v2-account{position:relative}
body.cf-v2 .v2-account-btn{
  display:flex;align-items:center;gap:9px;height:42px;padding:0 10px 0 6px;border-radius:12px;
  border:1px solid var(--v2-line);background:rgba(255,255,255,.025);color:var(--v2-text);cursor:pointer;
}
body.cf-v2 .v2-account-btn:hover{border-color:var(--v2-line-strong)}
body.cf-v2 .v2-account-avatar{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:.8rem;font-weight:800;color:#04121a;background:linear-gradient(140deg,#8ea7ff,#2fe0b0)}
body.cf-v2 .v2-account-meta{display:flex;flex-direction:column;line-height:1.1;text-align:left}
body.cf-v2 .v2-account-meta strong{font-size:.76rem}
body.cf-v2 .v2-account-meta small{font-size:.6rem;color:var(--v2-muted);text-transform:uppercase;letter-spacing:.07em}
body.cf-v2 .v2-account-btn > i{color:var(--v2-dim);font-size:.9rem}
body.cf-v2 .v2-dropdown{
  position:absolute;top:calc(100% + 8px);right:0;min-width:210px;padding:7px;
  border-radius:14px;border:1px solid var(--v2-line);background:#0b1322;
  box-shadow:var(--v2-shadow);display:none;z-index:80;
}
body.cf-v2 .v2-dropdown.is-open{display:block}
body.cf-v2 .v2-dropdown-title{display:block;padding:7px 10px;font-size:.58rem;letter-spacing:.16em;text-transform:uppercase;color:var(--v2-dim);font-weight:800}
body.cf-v2 .v2-dropdown a,body.cf-v2 .v2-dropdown button{
  width:100%;display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;border:0;background:none;
  color:var(--v2-muted);font-size:.78rem;font-weight:600;text-decoration:none;cursor:pointer;text-align:left;
}
body.cf-v2 .v2-dropdown a:hover,body.cf-v2 .v2-dropdown button:hover{background:rgba(59,123,255,.10);color:var(--v2-text)}
body.cf-v2 .v2-dropdown i{font-size:1rem;color:var(--v2-accent)}
body.cf-v2 .v2-dropdown form{margin:0}

/* ---------- Command palette ---------- */
body.cf-v2 .v2-palette{position:fixed;inset:0;z-index:200;display:grid;place-items:start center;padding:12vh 18px 18px;background:rgba(3,6,12,.72);backdrop-filter:blur(6px)}
body.cf-v2 .v2-palette[hidden]{display:none}
body.cf-v2 .v2-palette-panel{width:min(660px,100%);border-radius:18px;border:1px solid var(--v2-line-strong);background:#0a1220;box-shadow:0 40px 100px -30px #000;overflow:hidden}
body.cf-v2 .v2-palette-input{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--v2-line)}
body.cf-v2 .v2-palette-input i{color:var(--v2-accent);font-size:1.2rem}
body.cf-v2 .v2-palette-input input{flex:1;border:0;outline:0;background:transparent;color:var(--v2-text);font-size:.92rem;font-family:'Inter',sans-serif}
body.cf-v2 .v2-palette-list{max-height:46vh;overflow:auto;padding:8px}
body.cf-v2 .v2-palette-group{font-size:.56rem;letter-spacing:.16em;text-transform:uppercase;color:var(--v2-dim);font-weight:800;padding:8px 10px 4px}
body.cf-v2 .v2-palette-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--v2-muted);text-decoration:none;font-size:.82rem;font-weight:600;cursor:pointer}
body.cf-v2 .v2-palette-item i{font-size:1.05rem;color:var(--v2-accent)}
body.cf-v2 .v2-palette-item.is-active,body.cf-v2 .v2-palette-item:hover{background:rgba(59,123,255,.12);color:#fff}
body.cf-v2 .v2-palette-foot{display:flex;gap:14px;padding:9px 14px;border-top:1px solid var(--v2-line);font-size:.62rem;color:var(--v2-dim)}
body.cf-v2 .v2-palette-foot span{display:flex;align-items:center;gap:4px}
body.cf-v2 .v2-scrim{display:none}

/* ---------- Tarjetas, tipografia, utilidades ---------- */
body.cf-v2 .card,body.cf-v2 .legacy-card,body.cf-v2 .card-box,body.cf-v2 .ops-panel,body.cf-v2 .side-card{
  background:linear-gradient(165deg,rgba(16,26,46,.86),rgba(10,18,33,.9)) !important;
  border:1px solid var(--v2-line) !important;
  border-radius:var(--v2-radius) !important;
  box-shadow:var(--v2-shadow);
  backdrop-filter:blur(12px);
  color:var(--v2-text);
}
body.cf-v2 .card-body{padding:18px}
body.cf-v2 .card-title{font-size:1rem;margin-bottom:12px}
body.cf-v2 .card h1,body.cf-v2 .card h2,body.cf-v2 .card h3{color:var(--v2-text)}
body.cf-v2 .card h2{font-size:1.12rem}
body.cf-v2 .card h3{font-size:.98rem}
body.cf-v2 hr{border-color:var(--v2-line)}
body.cf-v2 a{color:var(--v2-accent)}
body.cf-v2 a:hover{color:#7ff0d3}

/* ---------- Botones ---------- */
body.cf-v2 .btn,body.cf-v2 button.btn{
  width:auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 14px;border-radius:10px;font-size:.78rem;font-weight:700;
  border:1px solid var(--v2-line);background:rgba(255,255,255,.03);color:var(--v2-text);
  box-shadow:none;transition:.16s;text-decoration:none;
}
body.cf-v2 .btn:hover{border-color:var(--v2-line-strong);background:rgba(59,123,255,.10);color:#fff}
body.cf-v2 .btn-primary{
  background:linear-gradient(135deg,var(--v2-accent),#28b9ff) !important;
  border-color:transparent !important;color:#04121a !important;
  box-shadow:0 14px 30px -16px rgba(47,224,176,.8);
}
body.cf-v2 .btn-primary:hover{filter:brightness(1.07);color:#04121a !important}
body.cf-v2 .btn-outline-light{border-color:var(--v2-line-strong);color:var(--v2-text)}
body.cf-v2 .btn-secondary{background:rgba(255,255,255,.04)}
body.cf-v2 .btn-sm{padding:6px 10px;font-size:.72rem;border-radius:9px}
body.cf-v2 .btn-danger{background:rgba(255,95,120,.14);border-color:rgba(255,95,120,.4);color:#ffb3bf}

/* ---------- Formularios ---------- */
body.cf-v2 input,body.cf-v2 select,body.cf-v2 textarea{
  width:100%;padding:10px 12px;border-radius:11px;border:1px solid var(--v2-line);
  background:rgba(6,12,24,.72);color:var(--v2-text);font-size:.82rem;font-family:'Inter',sans-serif;
  box-shadow:none;transition:.16s;
}
body.cf-v2 input:focus,body.cf-v2 select:focus,body.cf-v2 textarea:focus{
  outline:0;border-color:var(--v2-accent-2);box-shadow:0 0 0 3px rgba(59,123,255,.16);
  background:rgba(8,16,30,.9);
}
body.cf-v2 input[type="checkbox"],body.cf-v2 input[type="radio"]{
  width:16px;height:16px;min-width:16px;flex:0 0 16px;padding:0;margin:0;
  border-radius:4px;accent-color:var(--v2-accent);box-shadow:none;background:initial;
  vertical-align:middle;
}
body.cf-v2 input[type="file"]{padding:8px 10px;font-size:.74rem}
body.cf-v2 label{display:inline-flex;align-items:center;gap:7px}
body.cf-v2 input::placeholder,body.cf-v2 textarea::placeholder{color:var(--v2-dim)}
body.cf-v2 select option{background:#0b1322;color:var(--v2-text)}
body.cf-v2 label{color:var(--v2-muted);font-size:.74rem;font-weight:600}
body.cf-v2 .form-label{color:var(--v2-muted)}

/* ---------- Tablas ---------- */
body.cf-v2 .table,body.cf-v2 .settings-table,body.cf-v2 .users-table,body.cf-v2 .compact-table,body.cf-v2 .analytics-table-wrap table{
  width:100%;border-collapse:separate;border-spacing:0;color:var(--v2-text);font-size:.78rem;
}
body.cf-v2 .table thead th,body.cf-v2 .settings-table thead th,body.cf-v2 .users-table thead th,body.cf-v2 .compact-table thead th{
  position:sticky;top:0;z-index:2;background:#0c1526;color:var(--v2-muted);
  font-size:.6rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;
  padding:11px 12px;border-bottom:1px solid var(--v2-line);text-align:left;white-space:nowrap;
}
body.cf-v2 .table tbody td,body.cf-v2 .settings-table tbody td,body.cf-v2 .users-table tbody td{
  padding:11px 12px;border-bottom:1px solid rgba(120,152,200,.09);vertical-align:middle;
}
body.cf-v2 .table tbody tr:hover,body.cf-v2 .settings-table tbody tr:hover,body.cf-v2 .users-table tbody tr:hover{
  background:rgba(59,123,255,.055);
}
body.cf-v2 .table-striped tbody tr:nth-of-type(odd){background:rgba(255,255,255,.012)}
body.cf-v2 .table-responsive,body.cf-v2 .users-table-wrap,body.cf-v2 .analytics-table-wrap{
  border:1px solid var(--v2-line);border-radius:14px;overflow:auto;
}

/* ---------- Badges ---------- */
body.cf-v2 .badge{
  display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;
  font-size:.62rem;font-weight:800;letter-spacing:.02em;border:1px solid transparent;
}
body.cf-v2 .badge-outline-info{color:#9ec5ff;border-color:rgba(59,123,255,.4);background:rgba(59,123,255,.10)}
body.cf-v2 .badge-outline-success{color:#8df0c6;border-color:rgba(47,224,176,.4);background:rgba(47,224,176,.10)}
body.cf-v2 .badge-outline-warning{color:#ffd39b;border-color:rgba(255,180,84,.4);background:rgba(255,180,84,.10)}
body.cf-v2 .badge-outline-danger{color:#ffb3bf;border-color:rgba(255,95,120,.4);background:rgba(255,95,120,.10)}
body.cf-v2 .badge-outline-primary{color:#c7b3ff;border-color:rgba(166,133,255,.4);background:rgba(166,133,255,.10)}
body.cf-v2 .badge-outline-secondary{color:#b9c7e0;border-color:rgba(148,163,184,.35);background:rgba(148,163,184,.08)}

/* ---------- Eventos / workbench ---------- */
body.cf-v2 .ops-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid var(--v2-line);margin-bottom:14px}
body.cf-v2 .ops-badges{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
body.cf-v2 .ops-sev-filter{display:flex;gap:6px;flex-wrap:wrap}
body.cf-v2 .ops-sev-filter-btn{
  width:auto;border-radius:999px;border:1px solid var(--v2-line);background:rgba(255,255,255,.025);
  color:var(--v2-muted);padding:7px 12px;font-size:.7rem;font-weight:700;cursor:pointer;transition:.16s;
}
body.cf-v2 .ops-sev-filter-btn:hover{color:#fff;border-color:var(--v2-line-strong)}
body.cf-v2 .ops-sev-filter-btn.is-active{
  background:linear-gradient(135deg,var(--v2-accent),#28b9ff);border-color:transparent;color:#04121a;
  box-shadow:0 10px 24px -14px rgba(47,224,176,.9);
}
body.cf-v2 .ops-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
body.cf-v2 .ops-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.cf-v2 .ops-panel .card-body{display:flex;flex-direction:column;gap:10px}
body.cf-v2 .ops-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
body.cf-v2 .ops-panel-head h3{margin:0;font-size:.92rem}
body.cf-v2 .ops-kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.cf-v2 .ops-kpi{padding:10px;border-radius:12px;background:rgba(6,12,24,.6);border:1px solid var(--v2-line)}
body.cf-v2 .ops-kpi span{font-size:.6rem;color:var(--v2-muted);text-transform:uppercase;letter-spacing:.08em}
body.cf-v2 .ops-kpi strong{display:block;font-size:1.15rem;margin-top:3px;font-family:'Space Grotesk',sans-serif}
body.cf-v2 .ops-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.cf-v2 .ops-mini div{padding:9px;border-radius:11px;border:1px solid var(--v2-line);background:rgba(6,12,24,.55);font-size:.72rem}
body.cf-v2 .ops-mini span{color:var(--v2-muted);display:block;font-size:.6rem;text-transform:uppercase;letter-spacing:.07em}
body.cf-v2 .ops-mini strong{font-size:.82rem;display:block;margin-top:3px}
body.cf-v2 .ops-sev{display:grid;gap:6px}
body.cf-v2 .ops-sev-row{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;border-radius:10px;border:1px solid var(--v2-line);background:rgba(6,12,24,.55);font-size:.74rem}
body.cf-v2 .ops-sev-row.high{border-color:rgba(255,95,120,.28);color:#ffc2cb}
body.cf-v2 .ops-sev-row.med{border-color:rgba(255,180,84,.28);color:#ffe0b5}
body.cf-v2 .ops-sev-row.low{border-color:rgba(57,217,138,.28);color:#bdf7d9}
body.cf-v2 .ops-domain-list{display:grid;gap:6px}
body.cf-v2 .ops-domain-item{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:9px;border:1px solid var(--v2-line);background:rgba(6,12,24,.5);font-size:.72rem}
body.cf-v2 .ops-actions{display:flex;gap:6px;flex-wrap:wrap}
body.cf-v2 .event-workbench{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.6fr);gap:0;border:1px solid var(--v2-line);border-radius:16px;overflow:hidden;background:rgba(8,14,26,.6)}
body.cf-v2 .event-feed{border-right:1px solid var(--v2-line);max-height:720px;overflow:auto;padding:10px}
body.cf-v2 .event-feed-item{
  width:100%;display:flex;gap:9px;align-items:flex-start;text-align:left;padding:10px;border-radius:11px;
  border:1px solid transparent;background:transparent;color:var(--v2-text);cursor:pointer;transition:.15s;
}
body.cf-v2 .event-feed-item:hover{background:rgba(255,255,255,.035)}
body.cf-v2 .event-feed-item.is-active{background:linear-gradient(90deg,rgba(47,224,176,.12),rgba(59,123,255,.08));border-color:rgba(47,224,176,.25)}
body.cf-v2 .event-feed-sev{width:8px;height:8px;border-radius:50%;margin-top:5px;flex:0 0 8px;background:var(--v2-dim)}
body.cf-v2 .event-feed-sev.critical{background:var(--v2-danger);box-shadow:0 0 0 4px rgba(255,95,120,.16)}
body.cf-v2 .event-feed-sev.high{background:var(--v2-warn)}
body.cf-v2 .event-feed-sev.medium{background:#ffd166}
body.cf-v2 .event-feed-sev.low{background:var(--v2-ok)}
body.cf-v2 .event-feed-main{display:flex;flex-direction:column;gap:2px;min-width:0}
body.cf-v2 .event-feed-host{font-weight:700;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cf-v2 .event-feed-meta{font-size:.62rem;color:var(--v2-muted);font-family:'JetBrains Mono',monospace}
body.cf-v2 .event-feed-reason{font-size:.68rem;color:var(--v2-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cf-v2 .event-feed-flag{font-size:.52rem;font-weight:800;color:#ffb3bf;background:rgba(255,95,120,.12);border:1px solid rgba(255,95,120,.3);border-radius:999px;padding:2px 6px;width:max-content;margin-top:3px}
body.cf-v2 .event-group{margin-bottom:4px}
body.cf-v2 .event-group-toggle{width:auto;margin:2px 0 8px 17px;border:1px solid var(--v2-line);background:transparent;color:var(--v2-muted);border-radius:999px;padding:3px 9px;font-size:.62rem;cursor:pointer}
body.cf-v2 .event-group-items{padding-left:14px;border-left:1px dashed var(--v2-line)}
body.cf-v2 .event-detail-shell{padding:18px;min-height:300px;overflow:auto}
body.cf-v2 .event-title{font-size:1.25rem;margin:0}
body.cf-v2 .event-topline{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
body.cf-v2 .event-badges{display:flex;gap:6px;flex-wrap:wrap}
body.cf-v2 .event-ai-summary{border:1px solid var(--v2-line);border-radius:14px;padding:14px;background:rgba(6,12,24,.55);margin-bottom:14px}
body.cf-v2 .event-ai-summary-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
body.cf-v2 .event-ai-summary-head h3{margin:0;font-size:.82rem}
body.cf-v2 .event-ai-summary-tag{font-size:.55rem;letter-spacing:.12em;color:var(--v2-accent);border:1px solid rgba(47,224,176,.35);border-radius:999px;padding:2px 7px}
body.cf-v2 .event-ai-summary-text{font-size:.78rem;color:var(--v2-muted);margin:0 0 8px}
body.cf-v2 .event-ai-summary-points{display:flex;gap:5px;flex-wrap:wrap}
body.cf-v2 .event-ai-point{font-size:.64rem;padding:4px 8px;border-radius:999px;border:1px solid var(--v2-line);background:rgba(255,255,255,.03);color:var(--v2-muted)}
body.cf-v2 .event-kv{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed rgba(120,152,200,.14);font-size:.76rem}
body.cf-v2 .event-kv b{color:var(--v2-muted);font-weight:600}
body.cf-v2 .event-kv span{font-family:'JetBrains Mono',monospace;font-size:.72rem;word-break:break-all;text-align:right}
body.cf-v2 .event-snippet{font-family:'JetBrains Mono',monospace;font-size:.7rem;padding:8px 10px;border-radius:9px;border:1px solid var(--v2-line);background:rgba(6,12,24,.6);margin-bottom:6px;word-break:break-word}
body.cf-v2 .event-context,body.cf-v2 #event-context{font-family:'JetBrains Mono',monospace;font-size:.7rem;background:rgba(4,9,18,.8);border:1px solid var(--v2-line);border-radius:12px;padding:12px;color:#bfe6ff;max-height:340px;overflow:auto;white-space:pre-wrap}
body.cf-v2 .event-raw summary{cursor:pointer;font-size:.74rem;color:var(--v2-muted);padding:8px 0}
body.cf-v2 .event-raw pre{background:rgba(4,9,18,.85);border:1px solid var(--v2-line);border-radius:12px;padding:12px;font-size:.68rem;max-height:340px;overflow:auto;color:#a9e8ff}
body.cf-v2 .event-empty{display:grid;place-items:center;color:var(--v2-dim);font-size:.78rem;padding:40px 14px;text-align:center}
body.cf-v2 .cf-redacted{font-size:11pt;filter:blur(4px);opacity:.8;user-select:none;display:inline-block}
body.cf-v2 pre .cf-redacted{filter:blur(3px)}

/* ---------- Usuarios ---------- */
body.cf-v2 .users-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
body.cf-v2 .users-kpi{background:rgba(6,12,24,.55);border:1px solid var(--v2-line);border-radius:14px;padding:12px 14px}
body.cf-v2 .users-kpi span{font-size:.6rem;color:var(--v2-muted);text-transform:uppercase;letter-spacing:.1em}
body.cf-v2 .users-kpi strong{display:block;font-size:1.4rem;margin-top:3px;font-family:'Space Grotesk',sans-serif}
body.cf-v2 .users-kpi--online strong{color:var(--v2-ok)}
body.cf-v2 .users-card,body.cf-v2 .users-admin-hero{margin-bottom:14px}
body.cf-v2 .users-avatar{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:9px;background:linear-gradient(140deg,#8ea7ff,#2fe0b0);color:#04121a;font-weight:800;font-size:.72rem;margin-right:7px;vertical-align:middle}
body.cf-v2 .users-online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--v2-ok);margin-left:6px;box-shadow:0 0 0 3px rgba(57,217,138,.15);vertical-align:middle}
body.cf-v2 .users-status{display:inline-block;padding:3px 9px;border-radius:999px;font-size:.62rem;border:1px solid transparent;white-space:nowrap}
body.cf-v2 .users-status.is-ok{background:rgba(57,217,138,.10);color:#8df0c6;border-color:rgba(57,217,138,.35)}
body.cf-v2 .users-status.is-pending{background:rgba(255,180,84,.10);color:#ffd39b;border-color:rgba(255,180,84,.35)}
body.cf-v2 .users-role{display:inline-block;font-size:.64rem;padding:3px 9px;border-radius:999px;border:1px solid var(--v2-line);background:rgba(148,163,184,.06);white-space:nowrap}
body.cf-v2 .users-role--admin{color:#ffb3bf;border-color:rgba(255,95,120,.35);background:rgba(255,95,120,.08)}
body.cf-v2 .user-edit summary{list-style:none;cursor:pointer;display:inline-block}
body.cf-v2 .user-edit summary::-webkit-details-marker{display:none}
body.cf-v2 .user-edit[open] .user-inline-form{margin-top:.6rem;padding:.8rem;border-radius:12px;border:1px solid var(--v2-line);background:rgba(6,12,24,.6)}
body.cf-v2 .user-inline-form{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
body.cf-v2 .user-inline-form select,body.cf-v2 .user-inline-form input{min-width:130px;width:auto}

/* ---------- Paneles laterales / mini listas ---------- */
body.cf-v2 .mini-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
body.cf-v2 .mini-list li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed rgba(120,152,200,.12);font-size:.74rem}
body.cf-v2 .mini-list li:last-child{border-bottom:0}
body.cf-v2 .mini-list span:first-child{color:var(--v2-muted)}
body.cf-v2 .mini-list .mono{color:var(--v2-text);font-size:.7rem}
body.cf-v2 .mini-links{display:flex;gap:10px;flex-wrap:wrap;font-size:.72rem}
body.cf-v2 .side-card{padding:14px}
body.cf-v2 .side-card h3{font-size:.82rem;margin:0 0 8px}

/* ---------- Acceso / login ---------- */
body.cf-v2 .access-card .card{border-radius:20px}
body.cf-v2 .access-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
body.cf-v2 .v2-access-brand{
  grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:18px 20px;
  border:1px solid var(--v2-line);border-radius:18px;
  background:linear-gradient(150deg,rgba(16,26,46,.82),rgba(10,18,33,.9));
}
body.cf-v2 .v2-access-brand img{width:58px;height:58px;object-fit:contain;border-radius:14px;background:#0b1220;border:1px solid var(--v2-line);padding:4px}
body.cf-v2 .v2-access-brand strong{display:block;font-family:'Space Grotesk',sans-serif;font-size:1.05rem;color:var(--v2-text)}
body.cf-v2 .v2-access-brand span{color:var(--v2-muted);font-size:.78rem}
body.cf-v2 .btn-success{
  background:linear-gradient(135deg,var(--v2-accent),#28b9ff) !important;
  border-color:transparent !important;color:#04121a !important;
  box-shadow:0 14px 30px -16px rgba(47,224,176,.8);
}
body.cf-v2 .access-card .card-body{padding:26px}
body.cf-v2 .access-card h4{font-size:1.1rem;margin-bottom:14px}

/* ---------- Tablas de analitica / intel ---------- */
body.cf-v2 .analytics-kpi{border-color:var(--v2-line);background:rgba(6,12,24,.55);border-radius:14px}
body.cf-v2 .analytics-kpi .v{font-family:'Space Grotesk',sans-serif}
body.cf-v2 .chart-card{background:rgba(6,12,24,.55);border:1px solid var(--v2-line);border-radius:14px}
body.cf-v2 .intel-toolbar{display:flex;gap:8px;flex-wrap:wrap}
body.cf-v2 .intel-section-head h3{font-size:.95rem}
body.cf-v2 .event-scope-toggle button{width:auto}

/* ---------- Scrollbars ---------- */
body.cf-v2 ::-webkit-scrollbar{width:9px;height:9px}
body.cf-v2 ::-webkit-scrollbar-track{background:transparent}
body.cf-v2 ::-webkit-scrollbar-thumb{background:rgba(120,160,220,.2);border-radius:99px;border:2px solid transparent;background-clip:padding-box}
body.cf-v2 ::-webkit-scrollbar-thumb:hover{background:rgba(120,160,220,.35);background-clip:padding-box}

/* ---------- Light theme ---------- */
body.cf-v2.cf-light{
  --v2-bg:#eef3fb;--v2-bg-2:#f6f9ff;--v2-panel:#ffffff;--v2-panel-solid:#ffffff;--v2-panel-2:#f2f6fd;
  --v2-line:rgba(30,64,120,.14);--v2-line-strong:rgba(30,90,200,.35);
  --v2-text:#0f1b2d;--v2-muted:#51637e;--v2-dim:#7b8aa3;
  --v2-shadow:0 24px 60px -40px rgba(15,35,70,.4);
  --bg:var(--v2-bg);--card:#fff;--txt:var(--v2-text);--text:var(--v2-text);--muted:var(--v2-muted);--dim:var(--v2-dim);
  background:var(--v2-bg) !important;color:var(--v2-text);
}
body.cf-v2.cf-light::before{background:radial-gradient(900px 520px at 12% -8%,rgba(59,123,255,.10),transparent 60%),radial-gradient(760px 480px at 92% 4%,rgba(47,224,176,.08),transparent 62%),linear-gradient(180deg,#eef3fb,#f6f9ff)}
body.cf-v2.cf-light::after{opacity:.5}
body.cf-v2.cf-light .v2-sidebar{background:linear-gradient(180deg,#fff,#f4f8ff);border-right-color:var(--v2-line)}
body.cf-v2.cf-light .v2-topbar{background:rgba(255,255,255,.82);border-bottom-color:var(--v2-line)}
body.cf-v2.cf-light .v2-user{background:#fff;border-color:var(--v2-line)}
body.cf-v2.cf-light .v2-link{color:#41536e}
body.cf-v2.cf-light .v2-link:hover{background:rgba(30,90,200,.06);color:#0f1b2d}
body.cf-v2.cf-light .v2-link.is-active{color:#0f1b2d;background:linear-gradient(90deg,rgba(47,224,176,.18),rgba(59,123,255,.08))}
body.cf-v2.cf-light .v2-link-icon{background:rgba(30,64,120,.05);color:#5b6f8e}
body.cf-v2.cf-light .v2-dropdown,body.cf-v2.cf-light .v2-palette-panel{background:#fff}
body.cf-v2.cf-light .v2-search,body.cf-v2.cf-light .v2-icon-btn,body.cf-v2.cf-light .v2-account-btn{background:rgba(30,64,120,.04);color:#41536e}
body.cf-v2.cf-light .card,body.cf-v2.cf-light .legacy-card,body.cf-v2.cf-light .card-box,body.cf-v2.cf-light .ops-panel,body.cf-v2.cf-light .side-card{background:#fff !important}
body.cf-v2.cf-light input,body.cf-v2.cf-light select,body.cf-v2.cf-light textarea{background:#fff;color:#0f1b2d}
body.cf-v2.cf-light .table thead th,body.cf-v2.cf-light .settings-table thead th,body.cf-v2.cf-light .users-table thead th{background:#f2f6fd;color:#51637e}
body.cf-v2.cf-light .event-workbench{background:#fff}
body.cf-v2.cf-light .event-context,body.cf-v2.cf-light #event-context,body.cf-v2.cf-light .event-raw pre,body.cf-v2.cf-light .event-snippet{background:#f7faff;color:#22354f}
body.cf-v2.cf-light .cf-redacted{opacity:.7}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  body.cf-v2 .v2-breadcrumb{display:none}
  body.cf-v2 .v2-search{max-width:none}
  body.cf-v2 .access-layout{grid-template-columns:1fr}
  /* El detalle usa un grid fijo de escritorio: en anchos con sidebar se desborda */
  body.cf-v2 #event-detail{display:block !important}
  body.cf-v2 #event-detail > *{width:100% !important;max-width:100% !important;min-width:0 !important}
  body.cf-v2 .event-topline{flex-direction:column;align-items:flex-start;width:100% !important}
  body.cf-v2 .event-title{white-space:normal;overflow-wrap:anywhere}
  body.cf-v2 .event-grid,body.cf-v2 .event-columns{grid-template-columns:1fr !important}
}
@media (max-width:520px){
  body.cf-v2 .access-card .card-body{padding:18px}
}
@media (max-width:1200px){
  body.cf-v2 .ops-side{grid-template-columns:1fr}
  body.cf-v2 .event-workbench{grid-template-columns:1fr}
  body.cf-v2 .event-feed{border-right:0;border-bottom:1px solid var(--v2-line);max-height:340px}
}
@media (max-width:900px){
  body.cf-v2 .ops-lower-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  body.cf-v2{--v2-sidebar:0px}
  /* Detalle de evento: de grid fijo a columna unica */
  body.cf-v2 #event-detail{display:block !important}
  body.cf-v2 #event-detail > *{width:100% !important;max-width:100% !important;min-width:0 !important}
  body.cf-v2 .event-topline{flex-direction:column;align-items:flex-start;width:100% !important}
  body.cf-v2 .event-title{white-space:normal;overflow-wrap:anywhere;font-size:1.08rem;max-width:100%}
  body.cf-v2 .event-badges{width:100%;max-width:100%;flex-wrap:wrap}
  body.cf-v2 .event-grid,body.cf-v2 .event-columns,body.cf-v2 #event-detail > .event-grid:first-of-type{grid-template-columns:1fr !important}
  body.cf-v2 .event-grid > *,body.cf-v2 .event-columns > *{min-width:0}
  body.cf-v2 .event-detail-shell{padding:12px}
  body.cf-v2 .event-kv{flex-wrap:wrap;gap:4px}
  body.cf-v2 .event-kv span{text-align:left;overflow-wrap:anywhere;max-width:100%}
  body.cf-v2 .event-ai-summary{padding:12px}
  body.cf-v2 .event-raw pre,body.cf-v2 .event-context{max-width:100%;overflow-wrap:anywhere}
  body.cf-v2 .event-group-head{flex-direction:column;align-items:stretch;gap:4px}
  body.cf-v2 .event-group-toggle{margin-left:0;width:max-content}
  /* Agrupacion de dominios como tarjetas */
  body.cf-v2 .legacy-events--domains table,body.cf-v2 .legacy-events--domains tbody{display:block;width:100%}
  body.cf-v2 .legacy-events--domains thead{display:none}
  body.cf-v2 .legacy-events--domains tbody{display:grid;gap:8px}
  body.cf-v2 .legacy-events--domains tr{
    display:grid;grid-template-columns:1fr auto;gap:3px 10px;
    padding:10px 12px;border:1px solid var(--v2-line);border-radius:12px;background:rgba(6,12,24,.55);
  }
  body.cf-v2 .legacy-events--domains td{display:flex;justify-content:space-between;gap:8px;border:0;padding:2px 0;width:auto}
  body.cf-v2 .legacy-events--domains td::before{color:var(--v2-muted);font-size:.62rem;text-transform:uppercase;letter-spacing:.05em}
  body.cf-v2 .legacy-events--domains td:nth-child(1){grid-column:1/-1;font-weight:700;font-size:.82rem;padding-bottom:5px;border-bottom:1px dashed rgba(120,152,200,.15);margin-bottom:3px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  body.cf-v2 .event-feed-host{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  body.cf-v2 .content-wrapper img,body.cf-v2 .content-wrapper canvas,body.cf-v2 .content-wrapper svg{max-width:100%;height:auto}
  body.cf-v2 .geo-mini-map,body.cf-v2 .geo-mini-wrap{width:100% !important;max-width:100% !important}
  body.cf-v2 .event-snippet,body.cf-v2 #event-context,body.cf-v2 .event-raw pre{word-break:break-word;overflow-wrap:anywhere}
  body.cf-v2 .legacy-events--domains td:nth-child(1)::before{content:none}
  body.cf-v2 .legacy-events--domains td:nth-child(2)::before{content:'Eventos'}
  body.cf-v2 .legacy-events--domains td:nth-child(3)::before{content:'Impactos'}
  body.cf-v2 .legacy-events--domains td:nth-child(4)::before{content:'Bloqueos'}
  body.cf-v2 .legacy-events--domains td:nth-child(5)::before{content:'Score max'}
  body.cf-v2 .legacy-events--domains td:nth-child(6){grid-column:1/-1;font-size:.68rem;color:var(--v2-muted)}
  body.cf-v2 .legacy-events--domains td:nth-child(6){flex-wrap:wrap;row-gap:2px;overflow-wrap:anywhere;word-break:break-word}
  body.cf-v2 .legacy-events--domains td:nth-child(6)::before{content:'Ultima actividad';flex:0 0 100%}
  body.cf-v2 .legacy-events--classic{overflow-x:auto;width:100%}
  body.cf-v2 .legacy-events--classic table{min-width:720px}
  /* Usuarios como tarjetas en telefono */
  body.cf-v2 .users-table{min-width:0 !important;width:100% !important;display:block}
  body.cf-v2 .users-table thead{display:none}
  body.cf-v2 .users-table tbody{display:grid;gap:10px;width:100% !important;grid-template-columns:1fr !important}
  body.cf-v2 .users-table tr{
    display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:10px 12px;
    border:1px solid var(--v2-line);border-radius:12px;background:rgba(6,12,24,.55);
  }
  body.cf-v2 .users-table td{display:flex;justify-content:space-between;gap:8px;border:0;padding:2px 0;width:auto;min-width:0;overflow-wrap:anywhere}
  body.cf-v2 .users-table td::before{color:var(--v2-muted);font-size:.6rem;text-transform:uppercase;letter-spacing:.06em}
  body.cf-v2 .users-table td:nth-child(1),
  body.cf-v2 .users-table td:nth-child(5),
  body.cf-v2 .users-table td:nth-child(6),
  body.cf-v2 .users-table td:nth-child(9){display:none}
  body.cf-v2 .users-table td:nth-child(2){grid-column:1/-1;font-weight:700;font-size:.82rem;padding-bottom:5px;border-bottom:1px dashed rgba(120,152,200,.15);margin-bottom:3px}
  body.cf-v2 .users-table td:nth-child(2)::before{content:none}
  body.cf-v2 .users-table td:nth-child(3)::before{content:'Email'}
  body.cf-v2 .users-table td:nth-child(4)::before{content:'Rol'}
  body.cf-v2 .users-table td:nth-child(7)::before{content:'Estado'}
  body.cf-v2 .users-table td:nth-child(8)::before{content:'Ultima sesion'}
  body.cf-v2 .users-table td:nth-child(10){grid-column:1/-1;margin-top:4px}
  body.cf-v2 .users-table td:nth-child(10)::before{content:none}
  /* Tablas generales: scroll tactil y densidad movil */
  body.cf-v2 .table-responsive,body.cf-v2 .users-table-wrap,body.cf-v2 .analytics-table-wrap,body.cf-v2 .legacy-table-wrap{
    overflow-x:auto;-webkit-overflow-scrolling:touch;
  }
  body.cf-v2 .table th,body.cf-v2 .table td,body.cf-v2 .settings-table th,body.cf-v2 .settings-table td,body.cf-v2 .users-table th,body.cf-v2 .users-table td{padding:8px 9px;font-size:.72rem}
  body.cf-v2 .users-table-wrap{max-height:460px}
  body.cf-v2 .analytics-table-wrap table{min-width:640px}
  body.cf-v2 .v2-sidebar{width:280px;transform:translateX(-102%);box-shadow:40px 0 80px -30px #000}
  body.cf-v2.v2-open .v2-sidebar{transform:none}
  body.cf-v2.v2-open .v2-scrim{display:block;position:fixed;inset:0;z-index:55;background:rgba(2,5,10,.6);backdrop-filter:blur(3px)}
  body.cf-v2 .page-body-wrapper{
    margin:0 !important;width:100% !important;max-width:100% !important;
  }
  body.cf-v2 .v2-menu-toggle{display:grid}
  body.cf-v2 .v2-top-logo{display:block}
  body.cf-v2 .access-layout{grid-template-columns:1fr}
  body.cf-v2 .v2-search{width:auto;flex:1}
  body.cf-v2 .v2-search span{display:none}
  body.cf-v2 .v2-account-meta{display:none}
  body.cf-v2 .v2-breadcrumb{display:none}
  body.cf-v2 .content-wrapper{padding:16px 14px 60px}
  body.cf-v2 .v2-topbar{padding:0 12px;gap:8px}
}
@media (max-width:640px){
  body.cf-v2 .v2-quick,body.cf-v2 .v2-account > .v2-account-btn > i{display:none}
  body.cf-v2 .ops-sev-filter-btn{padding:6px 9px;font-size:.64rem}
}

/* ==========================================================================
   Mobile app layer: bottom nav, touch targets, safe areas, gestures
   ========================================================================== */
body.cf-v2 .v2-bottom-nav{display:none}
body.cf-v2{touch-action:manipulation;-webkit-tap-highlight-color:transparent}

@media (max-width:760px){
  body.cf-v2{font-size:15px}
  body.cf-v2 .v2-bottom-nav{
    display:grid;grid-template-columns:repeat(5,1fr);gap:2px;
    position:fixed;left:0;right:0;bottom:0;z-index:54;
    padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));
    background:rgba(7,12,23,.94);
    border-top:1px solid var(--v2-line);
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
    box-shadow:0 -18px 40px -30px #000;
  }
  body.cf-v2 .v2-bottom-link{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    min-height:52px;padding:4px 2px;border:0;border-radius:11px;background:transparent;
    color:var(--v2-muted);font-family:'Inter',sans-serif;font-size:.58rem;font-weight:700;
    text-decoration:none;cursor:pointer;transition:background .15s,color .15s,transform .12s;
  }
  body.cf-v2 .v2-bottom-link i{font-size:1.3rem;line-height:1}
  body.cf-v2 .v2-bottom-link:active{transform:scale(.94)}
  body.cf-v2 .v2-bottom-link.is-active{color:var(--v2-accent);background:rgba(47,224,176,.10)}
  body.cf-v2 .v2-bottom-link.is-active i{filter:drop-shadow(0 0 8px rgba(47,224,176,.45))}
  body.cf-v2 .content-wrapper{padding:16px 16px calc(92px + env(safe-area-inset-bottom,0px))}

  /* Objetivos tactiles */
  body.cf-v2 .btn{min-height:46px;padding:12px 16px;font-size:.84rem;border-radius:12px}
  body.cf-v2 .btn-sm{min-height:40px;padding:9px 12px;font-size:.76rem}
  body.cf-v2 input,body.cf-v2 select,body.cf-v2 textarea{
    min-height:46px;font-size:16px;padding:11px 12px;border-radius:12px;
  }
  body.cf-v2 input[type="checkbox"],body.cf-v2 input[type="radio"]{min-height:0;width:20px;height:20px;flex:0 0 20px}
  body.cf-v2 .v2-icon-btn{width:44px;height:44px;flex-basis:44px}
  body.cf-v2 .v2-account-btn{height:44px}
  body.cf-v2 .v2-search{height:44px}
  body.cf-v2 .v2-topbar{height:64px;padding:0 12px}
  body.cf-v2 .v2-link{min-height:48px}
  body.cf-v2 .v2-logout-btn{min-height:44px}
  body.cf-v2 .ops-sev-filter-btn{min-height:40px;padding:8px 13px}
  body.cf-v2 .event-feed-item{min-height:56px;padding:11px 10px}
  body.cf-v2 .event-group-toggle{min-height:38px;padding:6px 12px}
  body.cf-v2 .user-edit summary{min-height:40px;display:inline-flex;align-items:center}
  body.cf-v2 .table td,body.cf-v2 .table th{min-height:40px}

  /* Tipografia movil */
  body.cf-v2 h1{font-size:1.5rem;line-height:1.15}
  body.cf-v2 h2{font-size:1.2rem}
  body.cf-v2 h3{font-size:1rem}
  body.cf-v2 .mut,body.cf-v2 .text-muted{font-size:.8rem;line-height:1.45}
  body.cf-v2 .event-title{font-size:1.12rem}
  body.cf-v2 .ops-header p{font-size:.82rem}

  /* El drawer tapa la bottom nav */
  body.cf-v2.v2-open .v2-bottom-nav{opacity:0;pointer-events:none}
  body.cf-v2 .v2-scrim{z-index:56}
}
