/* Kapix 2026 — demo interactiva del ERP (js/erp-demo.js).
   Tokens copiados del tema real del ERP (Able Pro + capa Kapix): Public Sans, esmeralda #01C38D,
   sidebar de vidrio, radios de 16px. Todo vive bajo .erp-app para no chocar con el sitio. */

.erp-app {
  --e-primary: #01C38D;
  --e-primary-dark: #00AA7B;
  --e-success: #2CA87F;
  --e-warning: #E58A00;
  --e-error: #DC2626;
  --e-info: #3EC9D6;
  --e-bg: #0B0E14;
  --e-surface: #141822;
  --e-surface-2: #1A1F2B;
  --e-hover: rgba(255, 255, 255, .05);
  --e-border: rgba(255, 255, 255, .08);
  --e-border-2: rgba(255, 255, 255, .14);
  --e-text: #E6EAF0;
  --e-strong: #FFFFFF;
  --e-muted: #8B98A5;
  --e-side: rgba(20, 24, 34, .72);
  --e-chrome: #10141C;
  --e-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --e-ok-bg: rgba(44, 168, 127, .16); --e-ok: #4FD1A5;
  --e-warn-bg: rgba(229, 138, 0, .16); --e-warn: #F5B547;
  --e-bad-bg: rgba(220, 38, 38, .16); --e-bad: #F87171;
  --e-mute-bg: rgba(148, 163, 184, .14); --e-mute: #A3AEBB;
  --e-cred-bg: rgba(14, 165, 233, .16); --e-cred: #5CC4F5;
  --e-info-bg: rgba(62, 201, 214, .14); --e-info-ink: #6EDDE7;
  --e-font: "Public Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --e-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --e-ease: cubic-bezier(.22, 1, .36, 1);
  container: erp / inline-size;
  display: flex;
  flex-direction: column;
  height: 680px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--e-bg);
  color: var(--e-text);
  font: 400 13px/1.45 var(--e-font);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .2);
  color-scheme: dark;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.erp-app[data-mode="light"] {
  --e-bg: #F8F9FA;
  --e-surface: #FFFFFF;
  --e-surface-2: #F3F5F7;
  --e-hover: rgba(29, 38, 48, .04);
  --e-border: #E8EBEE;
  --e-border-2: #D7DDE3;
  --e-text: #1D2630;
  --e-strong: #0E1720;
  --e-muted: #5B6B79;
  --e-side: rgba(255, 255, 255, .82);
  --e-chrome: #EEF1F4;
  --e-shadow: 0 10px 30px -14px rgba(29, 38, 48, .2);
  --e-ok-bg: #D1FAE5; --e-ok: #2CA87F;
  --e-warn-bg: #FEF3D6; --e-warn: #E58A00;
  --e-bad-bg: #FEE2E2; --e-bad: #DC2626;
  --e-mute-bg: #F3F4F6; --e-mute: #6B7280;
  --e-cred-bg: #E0F2FE; --e-cred: #0369A1;
  --e-info-bg: #E0F7F9; --e-info-ink: #0E8C98;
  border-color: rgba(255, 255, 255, .5);
  color-scheme: light;
}
.erp-app *, .erp-app *::before, .erp-app *::after { box-sizing: border-box; }
.erp-app button, .erp-app input, .erp-app select { font: inherit; color: inherit; }
.erp-app button { cursor: pointer; background: none; border: 0; padding: 0; }
.erp-app button:disabled { cursor: not-allowed; opacity: .5; }
.erp-app h2, .erp-app h3, .erp-app h4, .erp-app p, .erp-app ul, .erp-app ol, .erp-app dl, .erp-app dd { margin: 0; padding: 0; }
.erp-app ul, .erp-app ol { list-style: none; }
.erp-app small { font-size: 11.5px; color: var(--e-muted); }
.erp-app :focus-visible { outline: 2px solid var(--e-primary); outline-offset: 2px; }
.erp-app [hidden] { display: none !important; }
.erp-noscript { margin: 0; padding: 48px 24px; color: #93A6B8; text-align: center; }

.ea-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ea-mono { font-family: var(--e-mono); font-size: 12px; letter-spacing: -.01em; }
.ea-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ea-strong { color: var(--e-strong); font-weight: 600; }
.ea-muted { color: var(--e-muted); font-size: 12px; }
.ea-wrap { word-break: break-all; }
.ea-cap { text-transform: capitalize; }

/* ---------- Ventana ---------- */
.ea-chrome { flex: none; display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px 0 16px; background: var(--e-chrome); border-bottom: 1px solid var(--e-border); }
.ea-dots { display: flex; gap: 6px; }
.ea-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.ea-dots i:nth-child(2) { background: #FEBC2E; }
.ea-dots i:nth-child(3) { background: #28C840; }
.ea-url { flex: 1; min-width: 0; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 8px; background: var(--e-hover); border: 1px solid var(--e-border); color: var(--e-muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.ea-url .ea-i { width: 13px; height: 13px; color: var(--e-primary); }
.ea-url span::after { content: " ·"; }
.ea-url b { font: 500 12px var(--e-mono); color: var(--e-text); overflow: hidden; text-overflow: ellipsis; }
.ea-chrome-r { display: flex; align-items: center; gap: 6px; }
.ea-chrome-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; color: var(--e-muted); font-size: 12px; font-weight: 500; transition: background .2s, color .2s; }
.ea-chrome-btn:hover { background: var(--e-hover); color: var(--e-text); }
.ea-chrome-btn .ea-i { width: 15px; height: 15px; }
.ea-mode { width: 30px; padding: 0; justify-content: center; }
.erp-app[data-mode="dark"] .i-moon, .erp-app[data-mode="light"] .i-sun { display: none; }

/* ---------- Estructura ---------- */
.ea-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); transition: grid-template-columns .35s var(--e-ease); isolation: isolate; }
.erp-app.collapsed .ea-body { grid-template-columns: 72px minmax(0, 1fr); }
.ea-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.ea-orbs i { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(1, 195, 141, .16), transparent 65%); top: -160px; left: -120px; }
.ea-orbs i + i { width: 520px; height: 520px; top: auto; left: auto; bottom: -260px; right: -160px; background: radial-gradient(circle, rgba(1, 195, 141, .1), transparent 65%); }
.erp-app[data-mode="light"] .ea-orbs i { opacity: .45; }

/* Sidebar: réplica de aside.php + ablepro-theme.css ("Able Pro sidebar") + liquid-sidebar-navbar.css */
.ea-side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: color-mix(in srgb, var(--e-surface) 72%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-right: 1px solid color-mix(in srgb, var(--e-primary) 14%, var(--e-border)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 8px 0 32px rgba(0, 0, 0, .08); z-index: 30; }
.erp-app[data-mode="light"] .ea-side { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 8px 0 32px rgba(19, 25, 32, .06); }
.ea-brand { flex: none; display: flex; align-items: center; height: 56px; padding: 0 24px; border-bottom: 1px solid color-mix(in srgb, var(--e-primary) 10%, transparent); }
.ea-brand img { display: block; width: auto; height: auto; max-height: 34px; max-width: 190px; object-fit: contain; }
.ea-brand-k { display: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--e-primary); color: #fff; font-size: 16px; font-weight: 800; }
.ea-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 24px; scrollbar-width: thin; scrollbar-color: var(--e-border) transparent; }
.ea-nav::-webkit-scrollbar { width: 5px; }
.ea-nav::-webkit-scrollbar-thumb { background: var(--e-border); border-radius: 10px; }
.ea-side .ea-group { padding: 16px 20px 6px; white-space: nowrap; }
.ea-group span { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--e-muted); }
.ea-side .ea-link { display: flex; align-items: center; gap: 14px; width: calc(100% - 28px); margin: 2px 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; color: var(--e-muted); font-size: 14px; font-weight: 400; text-align: left; white-space: nowrap; transition: all .15s ease-in-out; }
.ea-ico { display: flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; }
.ea-si { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; color: var(--e-muted); transition: color .15s ease, stroke .15s ease; }
.ea-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--e-muted); }
.ea-chev { flex: none; width: 14px; height: 14px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.5; color: var(--e-muted); transition: transform .2s ease, color .2s ease; }
.ea-link:hover { background: var(--e-bg); }
.ea-link:hover .ea-si, .ea-link:hover .ea-title { color: var(--e-primary); }
.ea-link[aria-expanded="true"] .ea-chev { transform: rotate(180deg); color: var(--e-primary); }
/* Activo: píldora verde clara (claro) / vidrio esmeralda con borde y brillo (oscuro), como el ERP */
.ea-link.on, .ea-parent.has-on > .ea-link { background: #E6F9F3; }
.ea-link.on .ea-si, .ea-parent.has-on > .ea-link .ea-si, .ea-parent.has-on > .ea-link .ea-chev { color: var(--e-primary); }
.ea-link.on .ea-title, .ea-parent.has-on > .ea-link .ea-title { color: var(--e-primary); font-weight: 500; }
.erp-app[data-mode="dark"] .ea-link:hover { background: rgba(255, 255, 255, .05); }
.erp-app[data-mode="dark"] .ea-link:hover .ea-title { color: #fff; }
.erp-app[data-mode="dark"] .ea-link.on, .erp-app[data-mode="dark"] .ea-parent.has-on > .ea-link { background: linear-gradient(135deg, rgba(1, 195, 141, .18) 0%, rgba(1, 195, 141, .05) 100%); border-color: rgba(1, 195, 141, .35); box-shadow: 0 4px 18px rgba(1, 195, 141, .18); }
.erp-app[data-mode="dark"] .ea-link.on .ea-title, .erp-app[data-mode="dark"] .ea-parent.has-on > .ea-link .ea-title { color: #fff; font-weight: 600; }
.ea-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--e-ease); }
.ea-parent.open .ea-sub { grid-template-rows: 1fr; }
.ea-sub > div { overflow: hidden; }
.ea-parent.open .ea-sub > div { padding: 4px 0; }
.ea-side .ea-sublink { display: flex; align-items: center; gap: 12px; width: calc(100% - 28px); margin: 2px 14px; padding: 8px 14px 8px 36px; border-radius: 8px; color: var(--e-muted); font-size: 13.5px; text-align: left; white-space: nowrap; transition: all .15s ease-in-out; }
.ea-sublink span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ea-bullet { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--e-muted); transition: all .15s ease; }
.ea-sublink:hover { color: var(--e-primary); background: var(--e-bg); }
.ea-sublink:hover .ea-bullet { background: var(--e-primary); transform: scale(1.3); }
.ea-sublink.on { color: var(--e-primary); font-weight: 500; }
.ea-sublink.on .ea-bullet { width: 6px; height: 6px; background: var(--e-primary); }
.erp-app.collapsed .ea-brand img,
.erp-app.collapsed .ea-group,
.erp-app.collapsed .ea-title,
.erp-app.collapsed .ea-chev,
.erp-app.collapsed .ea-sub { display: none; }
.erp-app.collapsed .ea-brand { padding: 0; justify-content: center; }
.erp-app.collapsed .ea-brand-k { display: grid; }
.erp-app.collapsed .ea-nav { padding-top: 12px; }
.erp-app.collapsed .ea-link { justify-content: center; width: auto; margin: 2px 10px; padding: 10px 0; }

.ea-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; z-index: 1; }
.ea-head { flex: none; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--e-border); background: color-mix(in srgb, var(--e-bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; z-index: 20; }
.ea-icobtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--e-muted); transition: background .2s, color .2s; flex: none; }
.ea-icobtn:hover { background: var(--e-hover); color: var(--e-text); }
.ea-search { position: relative; flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--e-surface); border: 1px solid var(--e-border); color: var(--e-muted); transition: border-color .2s, box-shadow .2s; }
.ea-search:focus-within { border-color: rgba(1, 195, 141, .5); box-shadow: 0 0 0 3px rgba(1, 195, 141, .12); }
.ea-search .ea-i { width: 16px; height: 16px; }
.ea-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--e-text); font-size: 13px; }
.ea-search input::placeholder { color: var(--e-muted); }
.ea-search input::-webkit-search-cancel-button { display: none; }
.ea-search kbd { flex: none; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--e-border); font: 500 10.5px var(--e-mono); color: var(--e-muted); background: var(--e-hover); }
.ea-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border-radius: 12px; background: var(--e-surface); border: 1px solid var(--e-border); box-shadow: var(--e-shadow); }
.ea-results button { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; color: var(--e-text); font-weight: 500; }
.ea-results button:hover { background: var(--e-hover); }
.ea-results small { display: block; font-size: 10.5px; }
.ea-results p { padding: 8px 10px; color: var(--e-muted); }
.ea-head-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ea-bellwrap { position: relative; }
.ea-bell { position: relative; }
.ea-badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--e-error); color: #fff; font: 700 9.5px/16px var(--e-font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--e-bg); }
.ea-notif { position: absolute; top: calc(100% + 8px); right: -40px; width: 300px; padding: 12px; border-radius: 14px; background: var(--e-surface); border: 1px solid var(--e-border); box-shadow: var(--e-shadow); animation: eaPop .2s var(--e-ease); }
.ea-notif > b { display: block; margin: 2px 4px 8px; color: var(--e-strong); }
.ea-user { display: flex; align-items: center; gap: 10px; padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--e-border); white-space: nowrap; }
.ea-user b { display: block; font-size: 12.5px; color: var(--e-strong); }
.ea-user small { display: block; font-size: 11px; }
.ea-ava { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: hsl(var(--h) 65% 50% / .16); color: hsl(var(--h) 60% 68%); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.erp-app[data-mode="light"] .ea-ava { color: hsl(var(--h) 60% 36%); }

.ea-scroll { container: eaview / inline-size; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--e-border-2) transparent; }
.ea-view { padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.ea-enter { animation: eaIn .4s var(--e-ease); }
@keyframes eaIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes eaPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- Piezas ---------- */
.ea-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ea-bc { display: flex; align-items: center; gap: 6px; color: var(--e-muted); font-size: 11.5px; margin-bottom: 4px; }
.ea-bc i { font-style: normal; opacity: .6; }
.ea-pagehead h2, .ea-pos-top h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--e-strong); line-height: 1.2; }
.ea-actions { display: flex; gap: 8px; }
.ea-card { background: var(--e-surface); border: 1px solid var(--e-border); border-radius: 16px; padding: 16px; min-width: 0; }
.erp-app[data-mode="light"] .ea-card { box-shadow: 0 1px 2px rgba(29, 38, 48, .04); }
.ea-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ea-card-h h3 { font-size: 14.5px; font-weight: 600; color: var(--e-strong); }
.ea-card-h p { color: var(--e-muted); font-size: 12px; margin-top: 2px; }

.ea-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; }
.ea-btn .ea-i { width: 16px; height: 16px; }
.ea-btn:active:not(:disabled) { transform: scale(.97); }
.ea-btn-primary { background: var(--e-primary); color: #04261C; box-shadow: 0 6px 16px -8px rgba(1, 195, 141, .8); }
.ea-btn-primary:hover:not(:disabled) { background: #19D49E; }
.ea-btn-ghost { border-color: var(--e-border-2); color: var(--e-text); background: var(--e-surface); }
.ea-btn-ghost:hover:not(:disabled) { background: var(--e-hover); border-color: var(--e-muted); }
.ea-btn-white { background: #fff; color: #00664A; }
.ea-btn-white:hover { background: #EFFFF9; }
.ea-btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.ea-btn-glass:hover { background: rgba(255, 255, 255, .22); }
.ea-btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.ea-btn-block { width: 100%; height: 42px; }

.ea-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ea-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ea-pill-ok { background: var(--e-ok-bg); color: var(--e-ok); }
.ea-pill-warn { background: var(--e-warn-bg); color: var(--e-warn); }
.ea-pill-bad { background: var(--e-bad-bg); color: var(--e-bad); }
.ea-pill-mute { background: var(--e-mute-bg); color: var(--e-mute); }
.ea-pill-cred { background: var(--e-cred-bg); color: var(--e-cred); }
.ea-pill-info { background: var(--e-info-bg); color: var(--e-info-ink); }
.ea-pill-warn::before { animation: eaBlink 1s infinite; }
@keyframes eaBlink { 50% { opacity: .25; } }

.ea-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ea-chip { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--e-border); background: var(--e-surface); color: var(--e-muted); font-size: 12px; font-weight: 500; white-space: nowrap; transition: all .2s; }
.ea-chip:hover { color: var(--e-text); border-color: var(--e-border-2); }
.ea-chip.on { background: rgba(1, 195, 141, .14); border-color: rgba(1, 195, 141, .45); color: var(--e-primary); font-weight: 600; }

.ea-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--e-hover); color: var(--e-muted); font-size: 12px; }
.ea-note .ea-i { width: 15px; height: 15px; margin-top: 1px; color: var(--e-primary); }
.ea-tablecard > .ea-note { margin: 12px 0 0; }
.ea-empty { padding: 28px; text-align: center; color: var(--e-muted); }

/* ---------- Tablero ---------- */
.ea-banner { position: relative; overflow: hidden; display: flex; align-items: center; border-radius: 16px; padding: 22px 24px; background: linear-gradient(135deg, #01C38D 0%, #00AA7B 50%, #008862 100%); color: #fff; box-shadow: 0 16px 32px -18px rgba(1, 195, 141, .8); }
.ea-banner-copy { position: relative; z-index: 1; max-width: 520px; }
.ea-banner-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.ea-banner h3 { margin: 10px 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.ea-banner p { color: rgba(255, 255, 255, .86); font-size: 13px; }
.ea-banner-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ea-banner-art { position: absolute; right: -20px; top: -20px; width: 260px; height: 210px; fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; }

.ea-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.ea-kpi { --tone: var(--e-primary); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.ea-kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tone); opacity: .8; }
.ea-kpi-warning { --tone: var(--e-warning); }
.ea-kpi-success { --tone: var(--e-success); }
.ea-kpi-error { --tone: var(--e-error); }
.ea-kpi-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.ea-kpi-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 15%, transparent); }
.ea-kpi small { font-size: 12px; font-weight: 500; }
.ea-kpi strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--e-strong); line-height: 1.2; }
.ea-kpi strong.ea-num { font-size: 19px; }
.ea-kpi-foot { font-size: 11.5px; color: var(--e-muted); }
.ea-kpi-foot b { color: var(--tone); font-weight: 600; }
.ea-minibars { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.ea-minibars i { width: 5px; border-radius: 2px; background: var(--tone); opacity: .35; transform-origin: bottom; animation: eaGrow .7s var(--e-ease) backwards; }
.ea-minibars i:last-child { opacity: 1; }
.ea-minibars i:nth-child(2) { animation-delay: .04s; } .ea-minibars i:nth-child(3) { animation-delay: .08s; } .ea-minibars i:nth-child(4) { animation-delay: .12s; }
.ea-minibars i:nth-child(5) { animation-delay: .16s; } .ea-minibars i:nth-child(6) { animation-delay: .2s; } .ea-minibars i:nth-child(7) { animation-delay: .24s; }
@keyframes eaGrow { from { transform: scaleY(0); } }

.ea-row2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; }
.ea-row2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ea-growth { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--e-ok-bg); color: var(--e-ok); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ea-growth .ea-i { width: 14px; height: 14px; }
.ea-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; color: var(--e-muted); font-size: 12px; }
.ea-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ea-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--e-primary); }
.ea-legend i.b { background: #64748B; }
.ea-legend > b { margin-left: auto; color: var(--e-strong); font-size: 15px; font-weight: 700; }
.ea-legend > b small { font-weight: 400; }
.ea-legend.sm { margin: 0; }
.ea-chart { position: relative; height: 190px; }
.ea-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ea-grid line { stroke: var(--e-border); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ea-area { fill: url(#ea-ga); }
.ea-line-a, .ea-line-b { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.ea-line-a { stroke: var(--e-primary); stroke-width: 2.5; stroke-dasharray: 2000; animation: eaDraw 1.6s var(--e-ease); }
.ea-line-b { stroke: #64748B; stroke-width: 1.8; stroke-dasharray: 5 5; opacity: .8; }
@keyframes eaDraw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.ea-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--e-border-2); pointer-events: none; }
.ea-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--e-primary); box-shadow: 0 0 0 3px var(--e-surface); pointer-events: none; }
.ea-dot.b { background: #64748B; }
.ea-tip { position: absolute; top: 4px; transform: translateX(14px); min-width: 150px; padding: 8px 10px; border-radius: 10px; background: var(--e-surface-2); border: 1px solid var(--e-border-2); box-shadow: var(--e-shadow); font-size: 11.5px; pointer-events: none; z-index: 2; }
.ea-tip.flip { transform: translateX(calc(-100% - 14px)); }
.ea-tip b { display: block; margin-bottom: 4px; color: var(--e-strong); }
.ea-tip span { display: flex; align-items: center; gap: 6px; color: var(--e-text); white-space: nowrap; }
.ea-tip i { width: 8px; height: 8px; border-radius: 2px; background: var(--e-primary); }
.ea-tip i.b { background: #64748B; }
.ea-months { display: grid; grid-template-columns: repeat(12, 1fr); margin: 8px -2% 0; color: var(--e-muted); font-size: 10.5px; text-align: center; }

.ea-ringwrap { position: relative; width: 116px; height: 116px; margin: 0 auto 14px; }
.ea-ringwrap .ea-ring { width: 100%; height: 100%; }
.ea-ringwrap b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--e-strong); }
.ea-ring circle { fill: none; stroke-width: 3.2; }
.ea-ring .bg { stroke: var(--e-border); }
.ea-ring .fg { stroke: var(--e-primary); stroke-linecap: round; animation: eaRing 1.2s var(--e-ease); }
@keyframes eaRing { from { stroke-dasharray: 0 100; } }
.ea-plist { display: flex; flex-direction: column; gap: 11px; }
.ea-plist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.ea-plist b { display: block; font-size: 12.5px; font-weight: 600; color: var(--e-strong); }
.ea-plist small { font-size: 11px; }
.ea-plist span { font-weight: 700; font-size: 12px; color: var(--e-text); }
.ea-plist i, .ea-hbars i, .ea-bank i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--e-border); overflow: hidden; }
.ea-plist em, .ea-hbars em, .ea-bank em { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #00AA7B, #01C38D); transform-origin: left; animation: eaBar .9s var(--e-ease); }
@keyframes eaBar { from { transform: scaleX(0); } }

.ea-tasks { display: flex; flex-direction: column; gap: 2px; }
.ea-task { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border-radius: 10px; text-align: left; transition: background .2s; }
.ea-task:hover { background: var(--e-hover); }
.ea-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--e-border-2); transition: all .25s var(--e-ease); }
.ea-check .ea-i { width: 12px; height: 12px; stroke-width: 2.6; color: #fff; opacity: 0; transform: scale(.4); transition: all .25s var(--e-ease); }
.ea-task.done .ea-check { background: var(--e-primary); border-color: var(--e-primary); }
.ea-task.done .ea-check .ea-i { opacity: 1; transform: none; }
.ea-task-t { font-size: 12.5px; color: var(--e-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-task.done .ea-task-t { color: var(--e-muted); text-decoration: line-through; }
.ea-tag { padding: 2px 8px; border-radius: 6px; background: var(--e-hover); color: var(--e-muted); font-size: 10.5px; font-weight: 600; }
.ea-task small { min-width: 48px; text-align: right; font-size: 11px; }

.ea-activity { display: flex; flex-direction: column; gap: 12px; }
.ea-activity li, .ea-notif li { display: flex; gap: 10px; align-items: flex-start; }
.ea-notif ul { display: flex; flex-direction: column; gap: 4px; }
.ea-notif li { padding: 8px 6px; border-radius: 10px; }
.ea-notif li:hover { background: var(--e-hover); }
.ea-act-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--e-ok-bg); color: var(--e-ok); }
.ea-act-ico .ea-i { width: 15px; height: 15px; }
.ea-act-ico.info { background: var(--e-info-bg); color: var(--e-info-ink); }
.ea-act-ico.warn { background: var(--e-warn-bg); color: var(--e-warn); }
.ea-activity p, .ea-notif p { font-size: 12.5px; color: var(--e-text); line-height: 1.4; }
.ea-activity p b, .ea-notif p b { color: var(--e-strong); font-weight: 600; }
.ea-activity small, .ea-notif small { display: block; margin-top: 2px; font-size: 11px; }

/* ---------- Facturas ---------- */
.ea-fact { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ea-fact.has-sel { grid-template-columns: minmax(0, 1fr) 320px; }
.ea-fact-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ea-sumcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ea-sum { --tone: var(--e-muted); display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.ea-sum-ok { --tone: var(--e-success); }
.ea-sum-warn { --tone: var(--e-warning); }
.ea-sum-bad { --tone: var(--e-error); }
.ea-sum small { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ea-sum strong { font-size: 17px; font-weight: 700; color: var(--e-strong); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ea-sum-ok small, .ea-sum-warn small, .ea-sum-bad small { color: var(--tone); }
.ea-spark { width: 100%; height: 26px; margin-top: 4px; }
.ea-spark polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ea-eff-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ea-eff-row .ea-ring { width: 42px; height: 42px; }
.ea-eff-row .ea-ring circle { stroke-width: 4; }

.ea-tablecard { padding: 0; overflow: hidden; }
.ea-tablecard .ea-note { margin: 0 14px 14px; }
.ea-tabletools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--e-border); }
.ea-tablewrap { overflow-x: auto; scrollbar-width: thin; }
.ea-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ea-table th { padding: 10px 14px; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--e-muted); background: var(--e-hover); white-space: nowrap; }
.ea-table td { padding: 10px 14px; border-top: 1px solid var(--e-border); white-space: nowrap; color: var(--e-text); }
.ea-table .r { text-align: right; }
.ea-table tfoot td { font-weight: 700; color: var(--e-strong); background: var(--e-hover); }
.ea-row { cursor: pointer; transition: background .15s; }
.ea-row:hover { background: var(--e-hover); }
.ea-row.on { background: rgba(1, 195, 141, .08); box-shadow: inset 3px 0 0 var(--e-primary); }
.ea-row.fresh td { animation: eaFresh 2.4s ease-out; }
@keyframes eaFresh { 0%, 30% { background: rgba(1, 195, 141, .2); } }
.ea-client { display: inline-flex; align-items: center; gap: 9px; }
.ea-client .ea-ava { width: 26px; height: 26px; font-size: 10px; }
.ea-type { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--e-hover); border: 1px solid var(--e-border); font: 600 11px var(--e-mono); color: var(--e-text); }

.ea-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px; background: var(--e-surface); border: 1px solid var(--e-border); animation: eaSlide .35s var(--e-ease); }
@keyframes eaSlide { from { opacity: 0; transform: translateX(16px); } }
.ea-prev-h { display: flex; align-items: center; gap: 10px; }
.ea-prev-h > div { flex: 1; }
.ea-prev-h h3 { font-size: 17px; color: var(--e-strong); }
.ea-prev-client { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--e-hover); }
.ea-prev-client b { display: block; font-size: 13px; color: var(--e-strong); }
.ea-prev-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ea-prev-dates dt, .ea-hacbox dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--e-muted); font-weight: 600; }
.ea-prev-dates dd { font-weight: 600; color: var(--e-strong); font-size: 12.5px; }
.ea-lines { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ea-lines td { padding: 8px 0; border-bottom: 1px dashed var(--e-border); vertical-align: top; }
.ea-lines td small { display: block; }
.ea-lines .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
.ea-totals { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.ea-totals > div, .ea-cart-tot > div { display: flex; justify-content: space-between; gap: 10px; color: var(--e-muted); }
.ea-totals dd, .ea-cart-tot dd { font-variant-numeric: tabular-nums; color: var(--e-text); }
.ea-totals .grand, .ea-cart-tot .grand { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--e-border); color: var(--e-strong); font-weight: 700; font-size: 15px; }
.ea-totals .grand dd, .ea-cart-tot .grand dd { color: var(--e-strong); }
.ea-hacbox { padding: 12px; border-radius: 12px; border: 1px solid var(--e-border); display: flex; flex-direction: column; gap: 10px; }
.ea-hacbox h4 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--e-strong); }
.ea-hacbox h4 .ea-i { width: 15px; height: 15px; color: var(--e-primary); }
.ea-hacbox dl { display: flex; flex-direction: column; gap: 6px; }
.ea-hacbox dd { font-size: 11px; color: var(--e-text); }
.ea-steps { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; color: var(--e-muted); }
.ea-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.ea-steps li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--e-border); z-index: 0; }
.ea-steps li:first-child::before { display: none; }
.ea-steps li.done::before, .ea-steps li.now::before { background: var(--e-primary); }
.ea-steps i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--e-surface); border: 2px solid var(--e-border-2); }
.ea-steps li.done { color: var(--e-ok); font-weight: 600; }
.ea-steps li.done i { background: var(--e-primary); border-color: var(--e-primary); }
.ea-steps li.now { color: var(--e-warn); font-weight: 600; }
.ea-steps li.now i { border-color: var(--e-warning); animation: eaPulse 1.2s infinite; }
@keyframes eaPulse { 0% { box-shadow: 0 0 0 0 rgba(229, 138, 0, .5); } 100% { box-shadow: 0 0 0 8px rgba(229, 138, 0, 0); } }
.ea-prev-actions { display: flex; gap: 8px; }
.ea-prev-actions .ea-btn-primary { flex: 1; }

/* ---------- Cajón y modal ---------- */
.ea-scrim { position: absolute; inset: 0; z-index: 25; background: rgba(5, 8, 12, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.erp-app.dim .ea-scrim, .erp-app.side-open .ea-scrim { opacity: 1; pointer-events: auto; }
.ea-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 40; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--e-surface); border-left: 1px solid var(--e-border); box-shadow: -24px 0 48px -24px rgba(0, 0, 0, .5); transform: translateX(105%); visibility: hidden; transition: transform .4s var(--e-ease), visibility 0s .4s; }
.ea-drawer.open { transform: none; visibility: visible; transition: transform .4s var(--e-ease); }
.ea-drawer-h { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--e-border); }
.ea-drawer-h h3 { font-size: 16px; color: var(--e-strong); }
.ea-drawer-b { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ea-drawer-f { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--e-border); }
.ea-field { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ea-field > span { font-size: 11.5px; font-weight: 600; color: var(--e-muted); }
.ea-field select, .ea-dline input { width: 100%; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--e-border-2); background: var(--e-bg); color: var(--e-text); outline: none; }
.ea-field select:focus, .ea-dline input:focus { border-color: var(--e-primary); }
.ea-dlines { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ea-dline { display: grid; grid-template-columns: minmax(0, 1fr) 58px 96px 30px; gap: 6px; align-items: center; animation: eaIn .3s var(--e-ease); }
.ea-dline b { text-align: right; font-size: 12px; font-weight: 600; }
.ea-dline .ea-icobtn { width: 30px; height: 30px; }
.ea-dline .ea-icobtn .ea-i { width: 15px; height: 15px; }
.ea-drawer .ea-totals { padding: 12px; border-radius: 12px; background: var(--e-hover); }

.ea-modal { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 12, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: eaFade .2s; }
@keyframes eaFade { from { opacity: 0; } }
.ea-modal-card { width: min(380px, 100%); max-height: 100%; overflow-y: auto; padding: 18px; border-radius: 18px; background: var(--e-surface); border: 1px solid var(--e-border); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; animation: eaPop .3s var(--e-ease); }
.ea-modal-h { display: flex; align-items: center; justify-content: space-between; }
.ea-modal-h h3 { font-size: 16px; color: var(--e-strong); }
.ea-modal-total { padding: 14px; border-radius: 12px; background: rgba(1, 195, 141, .1); text-align: center; }
.ea-modal-total small { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.ea-modal-total b { font-size: 26px; font-weight: 800; color: var(--e-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ea-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ea-methods button { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--e-border-2); font-weight: 600; font-size: 12.5px; transition: all .2s; }
.ea-methods button:hover { background: var(--e-hover); }
.ea-methods button.on { border-color: var(--e-primary); background: rgba(1, 195, 141, .12); color: var(--e-primary); box-shadow: 0 0 0 3px rgba(1, 195, 141, .12); }
.ea-cash { display: flex; flex-direction: column; gap: 8px; }
.ea-cash > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ea-cash p { color: var(--e-muted); }
.ea-cash p b { color: var(--e-strong); }
.ea-paid { align-items: center; text-align: center; }
.ea-paid h3 { font-size: 18px; color: var(--e-strong); }
.ea-paid p { color: var(--e-muted); }
.ea-okmark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--e-primary); color: #fff; box-shadow: 0 0 0 8px rgba(1, 195, 141, .15); animation: eaOk .5s var(--e-ease); }
.ea-okmark .ea-i { width: 30px; height: 30px; stroke-width: 2.6; }
@keyframes eaOk { from { transform: scale(.4); opacity: 0; } }
.ea-paid-total { font-size: 28px; font-weight: 800; color: var(--e-strong); letter-spacing: -.02em; }
.ea-change b { color: var(--e-ok); }
.ea-paid-hac { display: flex; align-items: center; gap: 8px; color: var(--e-muted); font-size: 12px; }
.ea-paid-hac .ea-i { width: 15px; height: 15px; }

.ea-toasts { position: absolute; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; max-width: calc(100% - 32px); }
.ea-toast { display: flex; align-items: center; gap: 9px; max-width: 360px; padding: 10px 14px; border-radius: 12px; background: var(--e-surface-2); border: 1px solid var(--e-border-2); box-shadow: var(--e-shadow); font-size: 12.5px; color: var(--e-text); animation: eaToast .35s var(--e-ease); transition: opacity .3s, transform .3s; }
.ea-toast .ea-i { width: 16px; height: 16px; color: var(--e-primary); }
.ea-toast.info .ea-i { color: var(--e-info); }
.ea-toast.out { opacity: 0; transform: translateY(6px); }
@keyframes eaToast { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- Hacienda ---------- */
.ea-hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ea-hstat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 10px; padding: 12px 14px; }
.ea-hstat i { grid-row: span 2; width: 10px; height: 34px; border-radius: 5px; background: var(--e-success); }
.ea-hstat i.warn { background: var(--e-warning); }
.ea-hstat i.bad { background: var(--e-error); }
.ea-hstat i.info { background: var(--e-info); }
.ea-hstat b { font-size: 19px; color: var(--e-strong); line-height: 1.1; }
.ea-hstat small { font-size: 11.5px; }
.ea-hdetail td { padding: 0 14px 14px; white-space: normal; background: rgba(1, 195, 141, .05); border-top: 0; }
.ea-hd-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; }
.ea-hd-title b { color: var(--e-strong); }
.ea-hd-title span { color: var(--e-muted); font-size: 12px; }
.ea-hd-title span.bad { color: var(--e-bad); }
.ea-clave { display: flex; flex-wrap: wrap; gap: 4px; animation: eaIn .35s var(--e-ease); }
.ea-clave span { display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: 8px; background: var(--e-surface); border: 1px solid var(--e-border); font: 500 12px var(--e-mono); color: var(--e-strong); }
.ea-clave span.hl { border-color: rgba(1, 195, 141, .45); background: rgba(1, 195, 141, .08); }
.ea-clave i { font: 600 9.5px var(--e-font); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--e-muted); }

/* ---------- POS ---------- */
.ea-pos { display: flex; flex-direction: column; gap: 14px; }
.ea-pos-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ea-pos-top > div { flex: 1; min-width: 200px; }
.ea-clock { padding: 5px 10px; border-radius: 8px; background: var(--e-surface); border: 1px solid var(--e-border); font: 600 12.5px var(--e-mono); color: var(--e-strong); }
.ea-pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.ea-pos-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ea-pos-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--e-surface); border: 1px solid var(--e-border); color: var(--e-muted); }
.ea-pos-search:focus-within { border-color: rgba(1, 195, 141, .5); box-shadow: 0 0 0 3px rgba(1, 195, 141, .12); }
.ea-pos-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--e-text); font-size: 13px; }
.ea-pos-search input::placeholder { color: var(--e-muted); }
.ea-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.ea-prod { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 14px; background: var(--e-surface); border: 1px solid var(--e-border); text-align: left; transition: border-color .2s, transform .2s var(--e-ease), box-shadow .2s; }
.ea-prod:hover { border-color: rgba(1, 195, 141, .45); transform: translateY(-2px); box-shadow: var(--e-shadow); }
.ea-prod.added { animation: eaAdd .45s var(--e-ease); }
@keyframes eaAdd { 40% { transform: scale(.95); border-color: var(--e-primary); box-shadow: 0 0 0 4px rgba(1, 195, 141, .2); } }
.ea-prod-img { display: grid; place-items: center; height: 58px; margin-bottom: 6px; border-radius: 10px; background: linear-gradient(135deg, hsl(var(--h) 70% 50% / .2), hsl(var(--h) 70% 50% / .06)); color: hsl(var(--h) 60% 62%); font-size: 18px; font-weight: 800; }
.erp-app[data-mode="light"] .ea-prod-img { color: hsl(var(--h) 60% 38%); }
.ea-prod b { font-size: 12.5px; font-weight: 600; color: var(--e-strong); line-height: 1.25; }
.ea-prod small { font-size: 10.5px; }
.ea-prod strong { margin-top: 2px; color: var(--e-primary); font-size: 13px; font-weight: 700; }
.ea-cart { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.ea-cart-h { display: flex; flex-direction: column; gap: 8px; }
.ea-cart-h > div { display: flex; justify-content: space-between; align-items: baseline; }
.ea-cart-h b { color: var(--e-strong); font-size: 14px; }
.ea-cart-client { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px; background: var(--e-hover); font-size: 11.5px; color: var(--e-muted); }
.ea-cart-client .ea-i { width: 14px; height: 14px; }
.ea-cart-items { display: flex; flex-direction: column; max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
.ea-cart-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--e-border); animation: eaIn .25s var(--e-ease); }
.ea-cart-items li b { display: block; font-size: 12.5px; color: var(--e-strong); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-cart-items li small { font-size: 10.5px; }
.ea-cart-items li > strong { grid-column: 2; grid-row: 1; font-size: 12.5px; color: var(--e-strong); }
.ea-qty { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 2px; justify-self: start; border: 1px solid var(--e-border); border-radius: 8px; }
.ea-qty button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--e-muted); }
.ea-qty button:hover { background: var(--e-hover); color: var(--e-primary); }
.ea-qty .ea-i { width: 13px; height: 13px; }
.ea-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 12px; }
.ea-cart-items li.ea-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 8px; border: 0; text-align: center; color: var(--e-muted); }
.ea-cart-empty .ea-i { width: 30px; height: 30px; color: var(--e-border-2); margin-bottom: 4px; }
.ea-cart-empty span { font-size: 11.5px; }
.ea-cart-tot { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.ea-cart-act { display: flex; flex-wrap: wrap; gap: 6px; }
.ea-cart-act .ea-btn { flex: 1 1 auto; font-size: 11.5px; padding: 0 8px; }
.ea-pay { height: 48px; justify-content: space-between; font-size: 14px; border-radius: 12px; }
.ea-pay b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Contabilidad ---------- */
.ea-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 200px; }
.ea-bar { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ea-bar > div { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--e-border); }
.ea-bar i { width: min(18px, 40%); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #01C38D, #00AA7B); transform-origin: bottom; animation: eaGrow .9s var(--e-ease) backwards; }
.ea-bar i.b { background: linear-gradient(180deg, #7C8A9A, #5A6878); animation-delay: .1s; }
.ea-bar span { text-align: center; font-size: 11px; color: var(--e-muted); }
.ea-hbars { display: flex; flex-direction: column; gap: 11px; }
.ea-hbars li { display: grid; grid-template-columns: 1fr auto; gap: 5px; font-size: 12.5px; }
.ea-hbars b { font-weight: 700; color: var(--e-strong); }
.ea-banks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ea-bank { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--e-border); background: var(--e-hover); }
.ea-bank-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(1, 195, 141, .14); color: var(--e-primary); }
.ea-bank b { display: block; font-size: 12.5px; color: var(--e-strong); }
.ea-bank > strong { grid-column: 1 / -1; font-size: 17px; color: var(--e-strong); }

/* ---------- Nómina ---------- */
.ea-progress { height: 4px; border-radius: 2px; background: var(--e-border); overflow: hidden; }
.ea-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #00AA7B, #01C38D); transform-origin: left; animation: eaBar 1.8s linear; }

/* ---------- Módulos ---------- */
.ea-mod { display: flex; gap: 18px; padding: 22px; }
.ea-mod-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(1, 195, 141, .14); color: var(--e-primary); }
.ea-mod-ico .ea-i { width: 24px; height: 24px; }
.ea-mod h3 { font-size: 17px; color: var(--e-strong); }
.ea-mod > div > p { margin: 4px 0 14px; color: var(--e-muted); }
.ea-mod-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; margin-bottom: 18px; }
.ea-mod-feats li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ea-mod-feats .ea-i { width: 15px; height: 15px; color: var(--e-primary); stroke-width: 2.4; }
.ea-mod-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ea-skel { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.ea-skel i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--e-border) 0%, var(--e-hover) 50%, var(--e-border) 100%); background-size: 200% 100%; animation: eaShimmer 1.6s linear infinite; }
@keyframes eaShimmer { to { background-position: -200% 0; } }

/* ---------- Cursor del recorrido ---------- */
.ea-cursor { position: absolute; left: 0; top: 0; z-index: 80; width: 22px; height: 22px; margin: -3px 0 0 -4px; pointer-events: none; opacity: 0; transform: translate(-40px, -40px); transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .3s; }
.ea-cursor.show { opacity: 1; }
.ea-cursor svg { position: relative; z-index: 1; width: 22px; height: 22px; fill: #fff; stroke: #0B0E14; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.ea-cursor i { position: absolute; left: 4px; top: 3px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(1, 195, 141, .5); opacity: 0; transform: scale(.2); }
.ea-cursor.tap i { animation: eaTap .55s ease-out; }
@keyframes eaTap { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.3); } }

/* ---------- Adaptación por ancho del panel ---------- */
@container eaview (max-width: 980px) {
  .ea-fact.has-sel { grid-template-columns: minmax(0, 1fr); }
  .ea-fact.has-sel .ea-fact-main { display: none; }
  .ea-preview { position: static; }
}
@container eaview (max-width: 860px) {
  .ea-row2, .ea-row2.even { grid-template-columns: minmax(0, 1fr); }
  .ea-pos-grid { grid-template-columns: minmax(0, 1fr); }
  .ea-cart { position: static; }
  .ea-hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container eaview (max-width: 640px) {
  .ea-view { padding: 16px 14px 24px; }
  .ea-opt { display: none; }
  .ea-kpis, .ea-sumcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ea-kpi strong { font-size: 20px; }
  .ea-kpi strong.ea-num, .ea-sum strong { font-size: 14.5px; }
  .ea-minibars { display: none; }
  .ea-banner { padding: 18px; }
  .ea-banner h3 { font-size: 18px; }
  .ea-banner-art { opacity: .5; }
  .ea-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ea-mod { flex-direction: column; padding: 18px; }
  .ea-task { grid-template-columns: auto 1fr auto; }
  .ea-task small { display: none; }
  .ea-legend > b { margin-left: 0; width: 100%; }
  .ea-dline { grid-template-columns: minmax(0, 1fr) 52px 30px; }
  .ea-dline b { display: none; }
}

@container erp (max-width: 819px) {
  .ea-body, .erp-app.collapsed .ea-body { grid-template-columns: minmax(0, 1fr); }
  .ea-side { position: absolute; top: 0; left: 0; bottom: 0; width: 260px; transform: translateX(-102%); transition: transform .35s var(--e-ease); background: var(--e-surface); }
  .erp-app.side-open .ea-side { transform: none; box-shadow: 24px 0 48px -24px rgba(0, 0, 0, .6); }
  .ea-head { padding: 0 10px; gap: 6px; }
  .ea-search kbd { display: none; }
  .ea-url span { display: none; }
}
@container erp (max-width: 620px) {
  .ea-hide-sm { display: none !important; }
  .ea-user { border: 0; padding: 0; margin: 0; }
  .ea-chrome { gap: 8px; padding: 0 8px 0 12px; }
  .ea-dots i { width: 8px; height: 8px; }
  .ea-notif { right: -46px; width: min(290px, calc(100cqw - 24px)); }
}
@media (max-width: 720px) {
  .erp-app { height: 620px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .erp-app *, .erp-app *::before, .erp-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* LaserFlow: fondo del hero. El haz baja desde arriba y aterriza sobre el borde superior de la demo. */
.laser-flow-container { position: absolute; width: 100%; height: 100%; pointer-events: none; }
.laser-flow-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero > .laser-flow-container {
  inset: 0; width: auto; height: auto; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%);
  mask-image: linear-gradient(180deg, transparent, #000 18%);
}
.hero-demo-label { position: relative; z-index: 1; }
.hero-demo > .erp-app { z-index: 1; }
