/**
 * MSOFT DEL CARIBE — Identidad visual
 * Paleta: verde #8CC63F · negro #1a1a1a · blanco #ffffff
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --msoft-green: #8DC63F;
  --msoft-green-dark: #72a832;
  --msoft-green-darker: #5a8520;
  --msoft-green-light: #eef8e0;
  --msoft-green-muted: rgba(141, 198, 63, .14);
  --msoft-black: #1a1a1a;
  --msoft-gray-brand: #404040;
  --msoft-gray: #666666;
  --msoft-gray-light: #999999;
  --msoft-border: #e5e5e5;

  --blue: var(--msoft-green);
  --blue-dark: var(--msoft-green-dark);
  --blue-light: var(--msoft-green-light);
  --navy: var(--msoft-black);
  --navy-mid: #2d2d2d;
  --navy-light: #444444;
  --bg: #f7f7f7;
  --text: var(--msoft-black);
  --success: var(--msoft-green);
}

body.ep-app {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

/* ── Login premium MSOFT + wow ── */
.ep-login-wrap {
  background: #0a0a0a;
  min-height: 100vh;
  min-height: 100dvh;
}
.ep-login-inner {
  grid-template-columns: 1.15fr 1fr;
  min-height: calc(100vh - var(--footer-h, 78px));
  min-height: calc(100dvh - var(--footer-h, 78px));
}

/* Hero oscuro con brillo verde */
.ep-login-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(145deg, #0a0a0a 0%, #141414 40%, #1a2412 100%);
  color: #fff;
  padding: 0 2rem 2.5rem;
  border-right: none;
  justify-content: flex-start;
}
.ep-login-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(141, 198, 63, .2), transparent 58%),
    radial-gradient(ellipse 60% 40% at 85% 75%, rgba(141, 198, 63, .08), transparent 50%),
    linear-gradient(180deg, transparent 70%, rgba(141, 198, 63, .06) 100%);
  pointer-events: none;
}
.ep-login-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: ep-login-float 8s ease-in-out infinite;
}
.ep-login-hero-glow-1 {
  width: 280px; height: 280px;
  background: rgba(141, 198, 63, .22);
  top: -80px; right: -40px;
}
.ep-login-hero-glow-2 {
  width: 200px; height: 200px;
  background: rgba(141, 198, 63, .12);
  bottom: 10%; left: -60px;
  animation-delay: -4s;
}
@keyframes ep-login-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .85; }
  50% { transform: translate(12px, -16px) scale(1.06); opacity: 1; }
}
.ep-login-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}
.ep-login-hero::after {
  height: 3px;
  background: linear-gradient(90deg, var(--msoft-green), #a8d86a, transparent);
}
.ep-login-hero .ep-logo-block .ep-brand-text h1 { color: #fff; }
.ep-login-hero .ep-brand-pro { color: var(--msoft-green) !important; text-shadow: 0 0 24px rgba(141, 198, 63, .35); }
.ep-login-hero .ep-brand-tagline { color: rgba(255, 255, 255, .55); max-width: none; }
.ep-hero-desc { color: rgba(255, 255, 255, .72); opacity: 1; font-size: .95rem; }

/* Cabecera MSOFT — banda superior centrada en todo el panel */
.ep-msoft-hero-brand {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 200px;
  margin: 0;
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
}
.ep-msoft-hero-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 82%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 198, 63, .5), transparent);
}
.ep-msoft-hero-brand-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(340px, 72vw);
  height: min(340px, 72vw);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(141, 198, 63, .28) 0%, rgba(141, 198, 63, .08) 42%, transparent 68%);
  pointer-events: none;
  animation: ep-msoft-pulse 4.5s ease-in-out infinite;
}
.ep-msoft-hero-brand-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(300px, 64vw);
  height: min(300px, 64vw);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(141, 198, 63, .16);
  box-shadow:
    0 0 56px rgba(141, 198, 63, .14),
    inset 0 0 40px rgba(141, 198, 63, .05);
  pointer-events: none;
  animation: ep-msoft-ring 7s ease-in-out infinite;
}
.ep-msoft-hero-logo-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .7rem;
  animation: ep-msoft-logo-float 5s ease-in-out infinite;
}
.ep-msoft-hero-mark {
  display: block;
  width: 130px;
  height: auto;
  max-width: 42vw;
  object-fit: contain;
  filter: drop-shadow(0 10px 32px rgba(141, 198, 63, .45));
}
.ep-msoft-hero-logo-name {
  margin: .25rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #eef0f3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}
.ep-msoft-hero-logo-tag {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .46);
}
@keyframes ep-msoft-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .75; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
@keyframes ep-msoft-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .5; }
  50% { transform: translate(-50%, -50%) scale(1.03); opacity: .9; }
}
@keyframes ep-msoft-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.ep-logo-block-hero .ep-logo-svg {
  filter: drop-shadow(0 0 20px rgba(141, 198, 63, .4));
}

.ep-login-feature {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.ep-login-feature:hover {
  transform: translateX(6px);
  border-color: rgba(141, 198, 63, .45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ep-login-feature svg { color: var(--msoft-green); }
.ep-login-feature strong { color: #f1f5f9; }
.ep-login-feature span { color: rgba(255, 255, 255, .5); }
.ep-login-hero .ep-badge {
  background: rgba(141, 198, 63, .12);
  border: 1px solid rgba(141, 198, 63, .35);
  color: #c5e896;
  box-shadow: 0 0 20px rgba(141, 198, 63, .15);
}

/* Panel derecho — mesh + glass card */
.ep-login-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f4f7ef 0%, #fff 35%, #eef8e0 100%);
  padding: 2rem;
}
.ep-login-panel-glow {
  position: absolute;
  width: 420px; height: 420px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(141, 198, 63, .25) 0%, transparent 65%);
  pointer-events: none;
  animation: ep-login-pulse 6s ease-in-out infinite;
}
@keyframes ep-login-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.ep-login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(141, 198, 63, .12), transparent 40%),
    radial-gradient(circle at 95% 15%, rgba(26, 26, 26, .04), transparent 35%);
  pointer-events: none;
}
.ep-login-panel-inner {
  position: relative;
  z-index: 1;
  animation: ep-login-rise .55s ease-out both;
}
@keyframes ep-login-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ep-login-card-pro {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  box-shadow:
    0 20px 50px rgba(26, 26, 26, .1),
    0 0 0 1px rgba(141, 198, 63, .12),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  position: relative;
  overflow: hidden;
}
.ep-login-card-pro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--msoft-green), #a8d86a, var(--msoft-green-dark));
}
.ep-login-card-head h2 {
  color: var(--msoft-black);
  font-weight: 800;
  letter-spacing: -.02em;
}
.ep-login-tenant-badge {
  background: var(--msoft-green-light) !important;
  border-color: rgba(141, 198, 63, .3) !important;
}
.ep-login-tenant-badge-icon {
  background: rgba(141, 198, 63, .2) !important;
  color: var(--msoft-green-dark) !important;
}
.ep-login-tenant-badge strong { color: var(--msoft-gray) !important; }
.ep-login-tenant-badge span { color: var(--msoft-black) !important; }

.ep-btn-login {
  background: linear-gradient(135deg, var(--msoft-green-dark) 0%, var(--msoft-green) 50%, #9ed654 100%) !important;
  box-shadow: 0 6px 20px rgba(141, 198, 63, .4) !important;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform .15s ease, box-shadow .15s ease !important;
}
.ep-btn-login:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(141, 198, 63, .5) !important;
}
.ep-link-btn { color: var(--msoft-green-dark) !important; }
.ep-link-btn:hover { color: var(--msoft-green-darker) !important; }
.ep-login-legacy-toggle {
  border-top-color: rgba(141, 198, 63, .2) !important;
}
.ep-login-card-head .sub { line-height: 1.45; }

.ep-msoft-logo-full {
  display: block;
  max-width: min(320px, 100%);
  height: auto;
  object-fit: contain;
}
.ep-msoft-logo-footer {
  max-width: 200px;
  max-height: 52px;
}
.ep-logo-img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.ep-logo-img-xl { width: 64px; height: auto; }
.ep-logo-img-lg { width: 52px; height: auto; }
.ep-msoft-logo {
  width: auto;
  height: 44px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}
.ep-login-brand-mobile.ep-logo-block .ep-brand-text h1 { color: var(--msoft-black) !important; }
.ep-input-wrap input:focus {
  border-color: var(--msoft-green) !important;
  box-shadow: 0 0 0 3px rgba(141, 198, 63, .18) !important;
}
.ep-signup-card-pro .ep-login-field { margin-bottom: .85rem; }
.ep-signup-card-pro .ep-login-field label {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--msoft-gray);
}

/* ── Sidebar — blanco corporativo ── */
.ep-sidebar {
  background: #fff;
  color: var(--msoft-gray);
  border-right: 1px solid var(--msoft-border);
  box-shadow: 2px 0 12px rgba(0, 0, 0, .04);
}
.ep-brand { border-bottom: 1px solid var(--msoft-border); }
.ep-sidebar .ep-logo-block .ep-brand-text h1 { color: var(--msoft-black); }
.ep-sidebar .ep-logo-block .ep-brand-text .ep-brand-tagline { color: var(--msoft-gray-light); }
.ep-sidebar .ep-brand-pro { color: var(--msoft-green) !important; }
.ep-nav-section { color: #aaa; }
.ep-nav button { color: var(--msoft-gray); }
.ep-nav button:hover { background: #f5f5f5; color: var(--msoft-black); }
.ep-nav button.active {
  background: var(--msoft-green-muted);
  color: var(--msoft-black);
  border-left-color: var(--msoft-green);
  font-weight: 600;
}
.ep-nav button.active svg { stroke: var(--msoft-green); opacity: 1; }
.ep-user-card {
  background: #fafafa;
  border: 1px solid var(--msoft-border);
}
.ep-user-card strong { color: var(--msoft-black); }
.ep-user-card span, .ep-user-card em { color: var(--msoft-gray-light); }

/* ── Header ── */
.ep-header {
  background: #fff;
  border-bottom: 1px solid var(--msoft-border);
  box-shadow: 0 1px 0 rgba(140, 198, 63, .15);
}
.ep-notif-badge { background: var(--msoft-green); }

/* ── Botones primarios ── */
.ep-btn-primary {
  background: var(--msoft-green);
  border-color: var(--msoft-green);
}
.ep-btn-primary:hover { background: var(--msoft-green-dark); border-color: var(--msoft-green-dark); }
.ep-chip-live { background: var(--msoft-green-light); color: var(--msoft-green-darker); border-color: rgba(140, 198, 63, .4); }

/* ── KPIs y acentos ── */
.ep-kpi-icon.blue { background: var(--msoft-green-light); color: var(--msoft-green-dark); }
.ep-brand-pro,
.ep-logo-block .ep-brand-text h1 .ep-brand-pro,
.ep-sidebar .ep-brand-text h1 .ep-brand-pro,
.ep-footer-brand .ep-brand-text h1 .ep-brand-pro { color: var(--msoft-green) !important; }
.ep-progress-bar { background: linear-gradient(90deg, var(--msoft-green), #a8d86a); }
.ep-avatar-sm, .ep-avatar, .ep-avatar-lg, .ep-avatar-xs {
  background: linear-gradient(135deg, var(--msoft-green), var(--msoft-green-dark));
}
.ep-avatar-clickable:hover { box-shadow: 0 0 0 2px rgba(140, 198, 63, .4); }

/* ── Footer profesional (oscuro + acento MSOFT) ── */
.ep-footer {
  background: linear-gradient(180deg, #060d18 0%, #0a1220 100%);
  border-top: 3px solid var(--msoft-green);
  color: #e2e8f0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .15);
}
.ep-footer-icon {
  background: rgba(141, 198, 63, .1);
  border-color: rgba(141, 198, 63, .22);
}
.ep-footer-item strong { color: #64748b; }
.ep-footer-item p { color: #cbd5e1; }
.ep-footer-icon svg { stroke: var(--msoft-green) !important; }
.ep-footer-brand {
  border-left-color: rgba(255, 255, 255, .1);
  min-width: 220px;
}
.ep-footer-brand.ep-logo-block .ep-brand-text h1 { color: #fff; }
.ep-footer-brand.ep-logo-block .ep-brand-text .ep-brand-tagline { color: #94a3b8; }
.ep-footer-brand-divider { background: rgba(255, 255, 255, .12); }
.ep-msoft-title { color: #e2e8f0; }
.ep-msoft-brand .ep-brand-tagline { color: #94a3b8; }
/* ── Logo ExchangePro (círculos divisas) vs MSOFT (chevrons) ── */
.ep-footer-brand .ep-logo-svg {
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.ep-msoft-logo {
  width: 52px;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, .95);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ── Logo ExchangePro → chevrones MSOFT style en sidebar ── */
#ep-logo-mark .ep-chev-green { fill: var(--msoft-green); }
#ep-logo-mark .ep-chev-black { fill: var(--msoft-black); }

/* ── PWA banner ── */
.ep-pwa-banner-inner {
  background: #fff;
  color: var(--msoft-black);
  border: 1px solid rgba(140, 198, 63, .45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
.ep-pwa-banner-text span { color: var(--msoft-gray); }

/* ── Alertas info ── */
.ep-alert-info { background: var(--msoft-green-light); border-color: rgba(140, 198, 63, .35); color: var(--msoft-green-darker); }

/* ── Login footer global ── */
.ep-login-footer {
  background: #fff;
  border-top: 4px solid var(--msoft-green);
}
.ep-login-footer .ep-footer-item strong { color: var(--msoft-gray-light); }
.ep-login-footer .ep-footer-item p { color: var(--msoft-gray); }

@media (max-width: 900px) {
  .ep-login-inner { grid-template-columns: 1fr; min-height: auto; }
  .ep-login-hero { display: none; }
  .ep-login-panel { min-height: 50vh; }
}

/* ── Sidebar co-brand MSOFT ── */
.ep-sidebar-msoft {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 .85rem .35rem;
  padding: .35rem .5rem;
  border-radius: 8px;
  background: var(--msoft-green-light);
  border: 1px solid rgba(140, 198, 63, .25);
}
.ep-sidebar-msoft span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--msoft-green-darker);
  line-height: 1.2;
}
.ep-layout.ep-sidebar-collapsed .ep-sidebar-msoft { display: none; }

/* ── Nav — íconos circulares verdes (estilo tarjeta MSOFT) ── */
.ep-nav button.active svg {
  padding: 5px;
  background: var(--msoft-green);
  border-radius: 50%;
  stroke: #fff !important;
  width: 26px !important;
  height: 26px !important;
  box-sizing: content-box;
  box-shadow: 0 2px 8px rgba(140, 198, 63, .45);
}
.ep-layout.ep-sidebar-collapsed .ep-nav button.active svg {
  padding: 6px;
  width: 22px !important;
  height: 22px !important;
}

/* ── Operaciones — panel oscuro con acentos MSOFT ── */
.ep-op-hero {
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 45%, #252525 100%);
  border: 1px solid rgba(140, 198, 63, .22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ep-op-hero-glow {
  background: radial-gradient(circle, rgba(140, 198, 63, .28) 0%, transparent 68%);
}
.ep-op-turno-pill {
  background: rgba(140, 198, 63, .15);
  color: #c5e896;
  border-color: rgba(140, 198, 63, .45);
}
.ep-op-turno-pill::before {
  background: var(--msoft-green);
  box-shadow: 0 0 8px var(--msoft-green);
}
.ep-op-kpi-venta .ep-op-kpi-val {
  color: var(--msoft-green);
  text-shadow: 0 0 20px rgba(140, 198, 63, .4);
}
.ep-op-kpi-compra .ep-op-kpi-val {
  color: #e5e5e5;
  text-shadow: none;
}
.ep-op-flujo-in, .ep-flujo-in { color: var(--msoft-green); }
.ep-op-mode-venta.active {
  background: linear-gradient(135deg, rgba(140, 198, 63, .28) 0%, rgba(114, 168, 50, .45) 100%);
  border-color: var(--msoft-green);
  box-shadow: 0 8px 28px rgba(140, 198, 63, .4), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.ep-op-mode-venta.active .ep-op-mode-icon {
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 16px rgba(140, 198, 63, .55);
}
.ep-op-mode-compra.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(80, 80, 80, .35) 100%);
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.ep-op-mode-compra.active .ep-op-mode-icon {
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 12px rgba(255, 255, 255, .15);
}
.ep-op-subtabs button.active {
  background: var(--msoft-green);
  border-color: var(--msoft-green);
  box-shadow: 0 4px 16px rgba(140, 198, 63, .4);
}

/* Resumen lateral */
.ep-op-summary {
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid rgba(140, 198, 63, .2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.ep-op-summary h4 { color: var(--msoft-green); letter-spacing: .1em; }
.ep-op-summary .ep-tag-venta { color: var(--msoft-green); }
.ep-op-summary .ep-tag-compra { color: #ccc; }
.ep-op-summary .row.total {
  border-top-color: rgba(140, 198, 63, .25);
  color: var(--msoft-green);
}

/* Formulario operaciones */
.ep-op-single {
  border: 1px solid var(--msoft-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.ep-field input:focus,
.ep-field select:focus {
  border-color: var(--msoft-green);
  box-shadow: 0 0 0 3px rgba(140, 198, 63, .15);
}
.ep-op-cli-pick:hover {
  border-color: var(--msoft-green);
  background: var(--msoft-green-light);
}

/* Badges estado OK */
.ep-badge-status.active {
  background: var(--msoft-green-light);
  color: var(--msoft-green-darker);
}

/* Dashboard KPIs */
.ep-kpi-icon.green { background: var(--msoft-green-light); color: var(--msoft-green-dark); }
.ep-kpi-icon.purple { background: #f5f5f5; color: var(--msoft-black); }
.ep-chip-live {
  background: var(--msoft-green-light);
  color: var(--msoft-green-darker);
}
.ep-chip-live::before { background: var(--msoft-green); }
.ep-text-success { color: var(--msoft-green-darker) !important; }

/* Tarjetas generales */
.ep-card {
  border: 1px solid var(--msoft-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.ep-card-head h3 { color: var(--msoft-black); }

/* Banner crítico — borde MSOFT sutil arriba */
.ep-crit-banner {
  border-left: 4px solid #dc2626;
  background: linear-gradient(90deg, rgba(220, 38, 38, .08), rgba(141, 198, 63, .04));
}

/* User card sidebar — corregir colores oscuros heredados */
.ep-user-card-info strong { color: var(--msoft-black) !important; }
.ep-user-card-info span { color: var(--msoft-gray-light) !important; }
.ep-user-card-info em { color: var(--msoft-gray) !important; }

/* SweetAlert coherente */
.ep-swal-popup { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; }
.ep-swal-toast { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif !important; }
.ep-swal-btn-confirm {
  background: var(--msoft-green) !important;
  box-shadow: 0 4px 12px rgba(140, 198, 63, .35) !important;
}
.ep-swal-btn-confirm:focus {
  box-shadow: 0 0 0 3px rgba(140, 198, 63, .35) !important;
}

/* Rep ingresos/egresos colores */
.ep-rep-kpi-currency.ep-rep-ing strong { color: var(--msoft-green-darker); }

/* ── Panel referencia de mercado (slide-in derecha) ── */
.ep-market-btn.active {
  border-color: var(--msoft-green) !important;
  color: var(--msoft-green-darker) !important;
  background: var(--msoft-green-light) !important;
  box-shadow: 0 0 0 3px rgba(141, 198, 63, .2);
}
.ep-market-drawer {
  position: fixed; inset: 0; z-index: 9100; pointer-events: none; visibility: hidden;
}
.ep-market-drawer.open { pointer-events: auto; visibility: visible; }
.ep-market-drawer-overlay {
  position: absolute; inset: 0; background: rgba(10, 10, 10, .52);
  opacity: 0; transition: opacity .32s ease;
}
.ep-market-drawer.visible .ep-market-drawer-overlay { opacity: 1; }
.ep-market-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100vw);
  background: linear-gradient(180deg, #fafbf8 0%, #fff 35%, #f4f8ee 100%);
  box-shadow: -16px 0 48px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}
.ep-market-drawer.visible .ep-market-drawer-panel { transform: translateX(0); }
.ep-market-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.25rem 1rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a2412 55%, #243018 100%);
  color: #fff; border-bottom: 3px solid var(--msoft-green);
}
.ep-market-drawer-kicker {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .16em;
  color: rgba(141, 198, 63, .9); margin: 0 0 .25rem;
}
.ep-market-drawer-head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.ep-login-signup-link { text-align: center; margin: .85rem 0 0; font-size: .78rem; }

/* --- Registro SaaS (wizard pro) --- */
.ep-login-panel-inner.ep-signup-mode { max-width: 520px; width: 100%; }
.ep-signup-card-pro {
  display: flex; flex-direction: column; max-height: min(92vh, 720px);
  padding: 0 !important; overflow: hidden;
}
.ep-signup-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 1.35rem 1.5rem .5rem;
  scrollbar-width: thin; scrollbar-color: rgba(141,198,63,.4) transparent;
}
.ep-signup-scroll::-webkit-scrollbar { width: 5px; }
.ep-signup-scroll::-webkit-scrollbar-thumb { background: rgba(141,198,63,.35); border-radius: 4px; }
.ep-signup-head { margin-bottom: 1rem; }
.ep-signup-kicker {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--msoft-green-dark); margin-bottom: .35rem;
}
.ep-signup-steps {
  display: flex; gap: .35rem; margin-top: 1rem; padding: .25rem;
  background: rgba(141, 198, 63, .08); border-radius: 12px; border: 1px solid rgba(141, 198, 63, .15);
}
.ep-signup-step {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem .35rem; border: none; background: transparent; border-radius: 9px;
  font-size: .68rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .2s;
}
.ep-signup-step span {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .62rem; background: rgba(0,0,0,.06); color: var(--muted);
}
.ep-signup-step.active {
  background: #fff; color: var(--msoft-black); box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ep-signup-step.active span { background: var(--msoft-green); color: #fff; }
.ep-signup-step.done { color: var(--msoft-green-dark); }
.ep-signup-step.done span { background: rgba(141,198,63,.25); color: var(--msoft-green-dark); }

.ep-signup-section-title {
  margin: 0 0 1rem; font-size: .88rem; font-weight: 800; color: var(--msoft-black);
}
.ep-signup-panel { animation: ep-signup-panel-in .35s ease both; }
@keyframes ep-signup-panel-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.ep-field-hint {
  margin: .4rem 0 0; font-size: .68rem; color: var(--muted); line-height: 1.4;
}
.ep-field-hint em { color: var(--msoft-green-dark); font-style: normal; font-weight: 700; }

.ep-signup-billing-toggle {
  display: flex; gap: .35rem; padding: .25rem; margin-bottom: 1rem;
  background: #f1f5f9; border-radius: 10px; border: 1px solid var(--msoft-border);
}
.ep-signup-bill-opt {
  flex: 1; padding: .55rem .75rem; border: none; border-radius: 8px; background: transparent;
  font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.ep-signup-bill-opt.active {
  background: #fff; color: var(--msoft-black); box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.ep-signup-save {
  font-size: .58rem; font-weight: 800; padding: .15rem .4rem; border-radius: 999px;
  background: rgba(141,198,63,.2); color: var(--msoft-green-dark);
}

.ep-signup-plans { display: grid; gap: .65rem; }
.ep-signup-plans-loading {
  text-align: center; padding: 1.5rem; color: var(--muted); font-size: .78rem;
}
.ep-signup-plan {
  position: relative; display: block; padding: .85rem 1rem .85rem 1.1rem;
  border: 2px solid var(--msoft-border); border-radius: 14px; cursor: pointer;
  background: #fff; transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ep-signup-plan:hover { border-color: rgba(141,198,63,.45); transform: translateY(-1px); }
.ep-signup-plan.selected {
  border-color: var(--msoft-green);
  box-shadow: 0 8px 24px rgba(141,198,63,.18);
  background: linear-gradient(135deg, rgba(141,198,63,.06), #fff);
}
.ep-signup-plan-popular { padding-top: 1.35rem; }
.ep-signup-popular-badge {
  position: absolute; top: 0; left: 1rem; transform: translateY(-50%);
  font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--msoft-green-dark), var(--msoft-green)); color: #fff;
}
.ep-signup-plan-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .35rem;
}
.ep-signup-plan-top strong { font-size: .92rem; color: var(--msoft-black); }
.ep-signup-plan-price { text-align: right; line-height: 1; white-space: nowrap; }
.ep-signup-plan-price em { font-style: normal; font-size: .68rem; color: var(--muted); vertical-align: top; }
.ep-signup-plan-price { font-size: 1.35rem; font-weight: 800; color: var(--msoft-black); }
.ep-signup-plan-price small { font-size: .62rem; font-weight: 600; color: var(--muted); margin-left: .1rem; }
.ep-signup-plan-desc { margin: 0 0 .5rem; font-size: .72rem; color: var(--muted); line-height: 1.4; }
.ep-signup-plan-feats {
  margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .65rem;
}
.ep-signup-plan-feats li {
  font-size: .65rem; font-weight: 600; color: var(--msoft-green-dark);
  padding: .2rem .45rem; border-radius: 6px; background: rgba(141,198,63,.12);
}
.ep-signup-plan-check {
  position: absolute; top: .85rem; right: .85rem; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--msoft-border); display: grid; place-items: center;
  opacity: 0; transform: scale(.8); transition: all .2s;
}
.ep-signup-plan-check svg { width: 12px; height: 12px; color: #fff; }
.ep-signup-plan.selected .ep-signup-plan-check {
  opacity: 1; transform: scale(1); background: var(--msoft-green); border-color: var(--msoft-green);
}
.ep-signup-trial-note {
  display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; padding: .65rem .75rem;
  font-size: .68rem; color: var(--muted); border-radius: 10px;
  background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.12);
}
.ep-signup-trial-note svg { flex-shrink: 0; color: #3b82f6; }

.ep-signup-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.ep-pass-strength { display: flex; gap: 4px; margin-top: .4rem; }
.ep-pass-strength span {
  flex: 1; height: 3px; border-radius: 2px; background: #e2e8f0; transition: background .2s;
}
.ep-pass-strength span.s1 { background: #f87171; }
.ep-pass-strength span.s2 { background: #fbbf24; }
.ep-pass-strength span.s3 { background: #8DC63F; }
.ep-pass-strength span.s4 { background: #5a8a28; }

.ep-signup-summary {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(141,198,63,.08); border: 1px solid rgba(141,198,63,.22);
}
.ep-signup-summary-row {
  display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0;
  font-size: .72rem; border-bottom: 1px dashed rgba(0,0,0,.06);
}
.ep-signup-summary-row:last-child { border-bottom: none; }
.ep-signup-summary-row span { color: var(--muted); }
.ep-signup-summary-row strong { color: var(--msoft-black); text-align: right; }
.ep-signup-summary-total strong { color: var(--msoft-green-dark); font-size: .85rem; }

.ep-signup-footer {
  display: flex; gap: .65rem; padding: .85rem 1.5rem 0; border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.92);
}
.ep-signup-footer .ep-signup-nav { flex: 1; margin: 0; }
.ep-signup-footer .ep-btn-ghost {
  flex: 0 0 auto; min-width: 5.5rem; font-size: .78rem; color: var(--muted);
}
.ep-signup-card-pro .ep-login-signup-link { padding: .65rem 1.5rem 1rem; margin: 0; }

@media (max-width: 520px) {
  .ep-signup-admin-grid { grid-template-columns: 1fr; }
  .ep-signup-step { font-size: 0; gap: 0; }
  .ep-signup-step span { font-size: .65rem; }
  .ep-signup-scroll { padding: 1rem 1rem .35rem; }
}

.ep-market-drawer-sub { margin: .35rem 0 0; font-size: .72rem; color: rgba(255,255,255,.55); }
.ep-market-tenant-strip {
  display: flex; align-items: center; gap: .65rem; margin: 0; padding: .65rem 1.25rem;
  background: rgba(141, 198, 63, .12); border-bottom: 1px solid rgba(141, 198, 63, .22);
}
.ep-market-tenant-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(141, 198, 63, .2); color: var(--msoft-green);
}
.ep-market-tenant-text strong {
  display: block; font-size: .78rem; font-weight: 700; color: var(--msoft-black); line-height: 1.25;
}
.ep-market-tenant-text span { font-size: .68rem; color: var(--muted); }
.ep-market-drawer-close {
  background: rgba(255,255,255,.1); border: none; color: #fff; width: 36px; height: 36px;
  border-radius: 10px; font-size: 1.45rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.ep-market-drawer-close:hover { background: rgba(141, 198, 63, .25); }
.ep-market-drawer-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--msoft-border);
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
}
.ep-market-base-label { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted); }
.ep-market-base-select {
  border: 1px solid var(--border); border-radius: 8px; padding: .35rem .55rem;
  font-size: .82rem; font-weight: 600; background: #fff;
}
.ep-market-drawer-body { flex: 1; overflow: auto; padding: 1rem 1.25rem 1.25rem; }
.ep-market-drawer-foot {
  padding: .85rem 1.25rem 1.1rem; border-top: 1px solid var(--msoft-border); background: #fff;
}
.ep-market-source-foot {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem .85rem; border-radius: 12px;
  background: linear-gradient(90deg, rgba(141, 198, 63, .12), rgba(141, 198, 63, .04));
  border: 1px solid rgba(141, 198, 63, .35);
}
.ep-market-source-badge {
  flex-shrink: 0; padding: .35rem .55rem; border-radius: 8px;
  background: var(--msoft-black); color: var(--msoft-green);
  font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.ep-market-source-foot strong {
  display: block; font-size: .78rem; color: var(--msoft-black); margin-bottom: .15rem;
}
.ep-market-source-foot span {
  display: block; font-size: .66rem; color: var(--muted); line-height: 1.4;
}
.ep-market-source-banner {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: 1rem; padding: .85rem 1rem; border-radius: 12px;
  background: linear-gradient(135deg, rgba(10, 10, 10, .04) 0%, rgba(141, 198, 63, .08) 100%);
  border: 1px solid rgba(141, 198, 63, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.ep-market-source-banner-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--msoft-green-light); color: var(--msoft-green-darker);
}
.ep-market-source-banner-text strong {
  display: block; font-size: .8rem; color: var(--msoft-black); margin-bottom: .25rem;
}
.ep-market-source-banner-text span {
  display: block; font-size: .72rem; color: var(--muted); line-height: 1.45;
}
.ep-market-foot-note { margin: 0; font-size: .68rem; color: var(--muted); line-height: 1.45; }
.ep-market-loading, .ep-market-empty, .ep-market-error {
  text-align: center; padding: 2.5rem 1rem; color: var(--muted); font-size: .88rem;
}
.ep-market-spinner {
  display: inline-block; width: 22px; height: 22px; margin-right: .5rem;
  border: 2px solid rgba(141, 198, 63, .25); border-top-color: var(--msoft-green);
  border-radius: 50%; animation: ep-market-spin .7s linear infinite; vertical-align: middle;
}
@keyframes ep-market-spin { to { transform: rotate(360deg); } }
.ep-market-error strong { display: block; color: #991b1b; margin-bottom: .35rem; }
.ep-market-hero {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; margin-bottom: 1rem;
  border-radius: 12px; background: rgba(141, 198, 63, .1); border: 1px solid rgba(141, 198, 63, .25);
}
.ep-market-hero-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--msoft-green), #6fa832); color: #fff;
  box-shadow: 0 8px 20px rgba(141, 198, 63, .35);
}
.ep-market-hero strong { display: block; font-size: .88rem; color: var(--msoft-black); }
.ep-market-hero span { font-size: .74rem; color: var(--muted); }
.ep-market-cards { display: flex; flex-direction: column; gap: .75rem; }
.ep-market-card {
  background: #fff; border-radius: 14px; border: 1px solid var(--msoft-border);
  box-shadow: 0 4px 16px rgba(0,0,0,.04); overflow: hidden;
  animation: ep-market-card-in .4s ease both;
}
.ep-market-card:nth-child(2) { animation-delay: .05s; }
.ep-market-card:nth-child(3) { animation-delay: .1s; }
.ep-market-card:nth-child(4) { animation-delay: .15s; }
@keyframes ep-market-card-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.ep-market-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; background: linear-gradient(90deg, #fafafa, #fff);
  border-bottom: 1px solid var(--msoft-border);
}
.ep-market-card-currency { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.ep-market-card-currency strong { display: block; font-size: .95rem; }
.ep-market-card-currency span { display: block; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.ep-market-ref-pill {
  text-align: right; padding: .35rem .65rem; border-radius: 999px;
  background: var(--msoft-green-light); border: 1px solid rgba(141, 198, 63, .35);
}
.ep-market-ref-pill small { display: block; font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; color: var(--msoft-green-darker); }
.ep-market-ref-pill strong { font-size: .82rem; color: var(--msoft-black); }
.ep-market-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ep-market-stat { padding: .85rem 1rem; }
.ep-market-stat-buy { border-right: 1px solid var(--msoft-border); background: rgba(141, 198, 63, .04); }
.ep-market-stat-label { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem; }
.ep-market-stat strong { font-size: 1rem; font-weight: 800; color: var(--msoft-black); }
.ep-market-diff { display: block; margin-top: .35rem; font-size: .65rem; font-style: normal; font-weight: 600; }
.ep-market-diff.up { color: #b45309; }
.ep-market-diff.down { color: #047857; }
.ep-market-diff.flat { color: var(--muted); }
.ep-market-diff.na { color: var(--muted); font-weight: 500; }
.ep-market-card-foot {
  padding: .55rem 1rem; font-size: .68rem; color: var(--muted);
  border-top: 1px dashed var(--msoft-border); background: #fafafa;
}
body.ep-market-open { overflow: hidden; }

/* Header reloj */
.ep-datetime strong { color: var(--msoft-black); }

/* Ticket drawer */
.ep-ticket-drawer-head {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 55%, var(--msoft-green-dark) 100%);
}

/* Caja toolbar */
.ep-caja-head .ep-btn-primary { background: var(--msoft-green); }
