/* ════════════════════════════════════════════════════════════
   BLUE STOCK — Sistema de Gestión Comercial
   v4 · ERP profesional · Alta densidad · Sin estética SaaS
   IBM Plex Sans · Bordes nítidos · Máxima legibilidad
════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Fondos ──────────────────────────────────────────── */
  --bg-app:          #0b0e15;
  --bg-topbar:       #0d111a;
  --bg-sidebar:      #0f1420;
  --bg-card:         #141925;
  --bg-card-hover:   #182030;
  --bg-input:        #0d111a;
  --bg-stripe:       rgba(255,255,255,0.022);

  /* ── Bordes ──────────────────────────────────────────── */
  --border:          #1e2740;
  --border-light:    #263050;
  --border-strong:   #324060;

  /* ── Acento principal ────────────────────────────────── */
  --accent:          #1a50d0;
  --accent-dark:     #1340a8;
  --accent-light:    #4d80e8;
  --accent-glow:     rgba(26,80,208,.12);
  --accent-glow-md:  rgba(26,80,208,.22);
  --shadow-accent:   0 2px 12px rgba(26,80,208,.22);
  --shadow-accent-btn: 0 2px 8px rgba(26,80,208,.35);

  /* ── Estados ─────────────────────────────────────────── */
  --success:         #22c55e;
  --success-bg:      rgba(34,197,94,.08);
  --success-border:  rgba(34,197,94,.22);
  --danger:          #ef4444;
  --danger-bg:       rgba(239,68,68,.08);
  --danger-border:   rgba(239,68,68,.22);
  --warning:         #f59e0b;
  --warning-bg:      rgba(245,158,11,.08);
  --warning-border:  rgba(245,158,11,.22);
  --info:            #3b82f6;
  --info-bg:         rgba(59,130,246,.08);
  --info-border:     rgba(59,130,246,.22);

  /* ── Texto — LEGIBILIDAD PRIORITARIA ─────────────────── */
  --text:            #e8edf5;   /* Principal: casi blanco */
  --text-sub:        #9aafc4;   /* Secundario: legible sobre oscuro */
  --text-muted:      #5d7390;   /* Terciario: visible pero subordinado */

  /* ── Topbar ──────────────────────────────────────────── */
  --topbar-h: 48.4px;

  /* ── Spacing & radios — ERP: bordes nítidos ──────────── */
  --tr:              .12s ease;
  --radius:          3px;
  --radius-lg:       4px;
  --radius-sm:       2px;
  --shadow:          0 3px 14px rgba(0,0,0,.55);
  --shadow-sm:       0 1px 6px rgba(0,0,0,.45);
}

html, body {
  height: 100%;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg-app);
  color: var(--text);
  font-size: 14.3px;
  line-height: 1.5;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   APP SHELL — Topbar horizontal + Main content
══════════════════════════════════════════════════════════ */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Topbar ─────────────────────────────────────────────── */
.app-topbar,
.sidebar {
  width: 100% !important;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  max-height: var(--topbar-h);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  border-right: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-shrink: 0;
  z-index: 100;
  padding: 0;
  overflow: visible;
  position: relative;
}

.sidebar > .sidebar-footer {
  display: none !important;
}

/* ── Logo / Brand ─────────────────────────────────────────── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 13.2px;
  padding: 0 15.4px;
  border-bottom: none !important;
  border-right: 1px solid var(--border);
  height: 100%;
  flex-shrink: 0;
}

/* ── Logo imagen de Blue Stock en topbar ─────────────────────────── */
.topbar-brand-img {
  height: 36.3px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-title {
  font-weight: 700;
  font-size: 13.2px;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 10.45px;
  color: var(--text-sub);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ── Nav horizontal ─────────────────────────────────────── */
.sidebar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex: 1;
  align-items: center;
  padding: 0 4.4px !important;
  gap: 1px !important;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 6.6px;
  padding: 0 15.4px;
  height: var(--topbar-h);
  text-decoration: none;
  color: var(--text-sub);
  font-size: 13.75px;
  font-weight: 500;
  transition: color var(--tr), background var(--tr), border-color var(--tr);
  cursor: pointer;
  border: none;
  border-bottom: 2.2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  background: transparent;
  letter-spacing: 0;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-bottom-color: var(--border-strong);
}

.nav-item.active {
  color: var(--accent-light);
  background: rgba(26,80,208,.1);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  opacity: .75;
  color: inherit;
}
.nav-icon svg {
  display: block;
  stroke: currentColor;
}

.nav-label {
  font-size: 13.75px;
}

/* ── Topbar derecha ───────────────────────────────────────── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  flex-shrink: 0;
  margin-left: auto;
  border-left: 1px solid var(--border);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 5.5px;
  padding: 0 13.2px;
  height: 100%;
  border-right: 1px solid var(--border);
}

.status-dot {
  width: 7.7px;
  height: 7.7px;
  border-radius: 50%;
  background: var(--warning);
  flex-shrink: 0;
}

.status-dot.connected    { background: var(--success); }
.status-dot.disconnected { background: var(--danger); }
.status-dot.connecting   { background: var(--warning); animation: blink 1.2s infinite; }
.status-text  { font-size: 11.55px; color: var(--text-sub); white-space: nowrap; }
.terminal-id  { font-size: 10.45px; color: var(--text-sub); font-family: 'IBM Plex Mono', monospace; }

.user-info {
  display: flex !important;
  align-items: center;
  gap: 8.8px;
  padding: 0 11px 0 13.2px;
  height: 100%;
}

.user-info-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.topbar-branch-name {
  font-size: 12.1px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0;
}

.topbar-username {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
}

.btn-about-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 3.3px 6.6px;
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
  border: 1px solid transparent;
}
.btn-about-link:hover {
  color: var(--accent-light);
  background: var(--accent-glow);
  border-color: var(--accent-glow-md);
}

#btn-about-ps { display: flex !important; }

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-app);
}

/* ══════════════════════════════════════════════════════════
   VIEW HEADERS
══════════════════════════════════════════════════════════ */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9.9px 19.8px 8.8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 48.4px;
  flex-shrink: 0;
}

.view-icon {
  font-size: 16.5px;
  line-height: 1;
  margin-right: 2.2px;
}

.view-title {
  font-size: 14.3px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

.view-subtitle {
  font-size: 11.55px;
  color: var(--text-sub);
  margin-top: 1px;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  padding: 5.5px 13.2px;
  border-radius: var(--radius);
  font-size: 13.2px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  white-space: nowrap;
  letter-spacing: 0;
}

.btn:active:not(:disabled) { opacity: .88; }
.btn:disabled { opacity: .35; cursor: not-allowed !important; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-color: var(--accent-dark);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: var(--accent);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}
.btn-success:hover:not(:disabled) { background: var(--success); color: #fff; border-color: var(--success); }

.btn-lg { padding: 7.7px 19.8px; font-size: 14.3px; }
.btn-sm { padding: 3.3px 8.8px; font-size: 12.1px; }
.btn-icon { width: 28.6px; height: 28.6px; padding: 0; justify-content: center; font-size: 14.3px; }

/* ── Botón CONFIRMAR (POS / Movimientos) ──────────────────── */
.btn-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6.6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14.3px;
  font-family: inherit;
  letter-spacing: .04em;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr);
  white-space: nowrap;
  padding: 8.8px 19.8px;
}
.btn-confirm:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: var(--accent);
}
.btn-confirm:active:not(:disabled) {
  opacity: .88;
}
.btn-confirm:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.btn-confirm:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Salir button en topbar */
#btn-logout {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 11.55px;
  font-family: inherit;
  padding: 3.3px 8.8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--tr);
  font-weight: 500;
}
#btn-logout:hover {
  border-color: var(--danger-border);
  color: var(--danger);
  background: var(--danger-bg);
}

/* ══════════════════════════════════════════════════════════
   FORM INPUTS
══════════════════════════════════════════════════════════ */
.input-group { display: flex; flex-direction: column; gap: 4.4px; margin-bottom: 13.2px; }

.input-label {
  font-size: 11.55px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 6.6px 11px;
  border-radius: var(--radius);
  font-size: 13.75px;
  font-family: inherit;
  transition: border-color var(--tr);
  outline: none;
  width: 100%;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.input::placeholder { color: var(--text-muted); }
select.input option { background: var(--bg-card); color: var(--text); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13.2px; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13.2px 16.5px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2.2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 13.2px 15.4px;
  transition: border-top-color var(--tr);
}

.stat-card:hover { border-top-color: var(--accent); }

.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 4.4px;
  letter-spacing: -.01em;
}
.stat-value.danger  { color: var(--danger); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }

.stat-label {
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════════ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--bg-sidebar);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7.7px 11px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.sortable-th { cursor: pointer; transition: background .15s; }
.sortable-th:hover { background: var(--bg-card); color: var(--text); }
.sortable-th::after { content: '↕'; margin-left: 4.4px; opacity: 0.18; font-size: 9.35px; }
.th-sort-asc::after  { content: '▲'; opacity: 1; color: var(--accent); }
.th-sort-desc::after { content: '▼'; opacity: 1; color: var(--accent); }

.resizer {
  position: absolute; right: 0; top: 0; height: 100%; width: 4.4px;
  cursor: col-resize; user-select: none; z-index: 1;
}
.resizer:hover { background: var(--accent); opacity: 0.5; }

.resizable-th { position: relative; overflow: visible; white-space: nowrap; }
.col-resizer {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 5.5px;
  cursor: col-resize; z-index: 2;
  border-right: 2.2px solid transparent;
  transition: border-color .15s;
}
.col-resizer:hover,
.col-resizer:active { border-right-color: var(--accent); }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
tbody tr:last-child { border-bottom: none; }

tbody tr:nth-child(even) { background: var(--bg-stripe); }
tbody tr:hover { background: var(--bg-card-hover) !important; }

tbody td {
  padding: 0;
  border: 1px solid var(--border);
  font-size: 13.2px;
}

/* ══════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2.2px 7.7px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid var(--danger-border); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid var(--info-border); }
.badge-neutral { background: rgba(120,140,160,.1); color: var(--text-sub); border: 1px solid var(--border-light); }
.badge-accent  { background: var(--accent-glow); color: var(--accent-light); border: 1px solid var(--accent-glow-md); }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.80);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: 2.2px solid var(--accent);
  border-radius: var(--radius);
  width: 100%;
  max-width: 594px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
  animation: slideUp .18s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12.1px 17.6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}

.modal-title { font-size: 14.3px; font-weight: 700; color: var(--text); }

.modal-close {
  background: none;
  border: 1px solid transparent;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 14.3px;
  padding: 3.3px 6.6px;
  border-radius: var(--radius-sm);
  transition: all var(--tr);
  line-height: 1;
}

.modal-close:hover { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }

.modal-body {
  padding: 15.4px 17.6px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8.8px;
  padding: 11px 17.6px;
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 19.8px;
  right: 19.8px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 6.6px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9.9px;
  padding: 9.9px 14.3px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 16px rgba(0,0,0,.55);
  min-width: 275px;
  max-width: 396px;
  animation: slideRight .2s ease;
  font-size: 13.75px;
}

.toast.success { border-left: 3.3px solid var(--success); }
.toast.error   { border-left: 3.3px solid var(--danger);  }
.toast.warning { border-left: 3.3px solid var(--warning); }
.toast.info    { border-left: 3.3px solid var(--info);    }
.toast-icon    { font-size: 15.4px; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--text); line-height: 1.4; }
.toast-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14.3px;
  padding: 2.2px 4.4px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--tr);
}
.toast-dismiss:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════
   POS VIEW — Punto de Venta
══════════════════════════════════════════════════════════ */
.pos-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.pos-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.pos-search-bar {
  padding: 13.2px 17.6px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
}

.search-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 6.6px;
}

.search-row { display: flex; gap: 7.7px; }

.search-code-input {
  flex: 1;
  background: var(--bg-app);
  border: 1.5px solid var(--border-light);
  color: var(--text);
  padding: 9.9px 14.3px;
  border-radius: var(--radius);
  font-size: 16.5px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: border-color var(--tr);
  outline: none;
}

.search-code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.search-code-input::placeholder { color: var(--text-muted); font-size: 13.2px; text-transform: none; letter-spacing: 0; font-weight: 400; }

#btn-confirm-sale:focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
}

.product-preview {
  padding: 11px 17.6px;
  min-height: 74.8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.product-preview-empty { color: var(--text-muted); font-size: 13.2px; width: 100%; text-align: center; }
.product-preview-content { display: flex; align-items: center; gap: 15.4px; width: 100%; }
.product-preview-info { flex: 1; }
.product-preview-info h3 { font-size: 14.85px; font-weight: 700; margin-bottom: 4.4px; }
.preview-meta { display: flex; gap: 5.5px; flex-wrap: wrap; }
.product-preview-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.preview-add-row { display: flex; align-items: center; gap: 7.7px; }

.qty-input {
  width: 57.2px;
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 6.6px 4.4px;
  border-radius: var(--radius);
  font-size: 15.4px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}
.qty-input:focus { border-color: var(--accent); }

.cart-area { flex: 1; overflow-y: auto; padding: 11px 13.2px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 176px;
  color: var(--text-muted);
  gap: 9.9px;
}
.cart-empty-icon { font-size: 41.8px; opacity: .25; }
.cart-empty-text { font-size: 13.2px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 9.9px;
  padding: 7.7px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4.4px;
  transition: border-color var(--tr), background var(--tr);
  animation: fadeIn .14s ease;
}
.cart-item:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.cart-item-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.45px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2.2px 5.5px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.75px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-detail { font-size: 11.55px; color: var(--text-sub); margin-top: 1px; }

.cart-qty-ctrl { display: flex; align-items: center; gap: 3.3px; }

.qty-btn {
  width: 24.2px;
  height: 24.2px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15.4px;
  transition: all var(--tr);
}
.qty-btn:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

.cart-qty-num {
  width: 28.6px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.3px;
  font-weight: 700;
}

.cart-subtotal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.75px;
  font-weight: 700;
  text-align: right;
  min-width: 79.2px;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14.3px;
  padding: 3.3px;
  border-radius: 3px;
  transition: all var(--tr);
  line-height: 1;
}
.btn-remove:hover { background: var(--danger-bg); color: var(--danger); }

.pos-right {
  display: flex;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: auto;
}

.pos-summary {
  flex: 1;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.summary-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.summary-line { display: flex; justify-content: space-between; font-size: 13.2px; color: var(--text-sub); }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total-label { font-size: 14.3px; font-weight: 700; color: var(--text); }
.summary-total-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24.2px;
  font-weight: 700;
  color: var(--accent-light);
}

.pos-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 17.6px;
  border-left: 1px solid var(--border);
}

.excel-table-footer {
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--bg-card);
}

.excel-table-footer th {
  font-size: 9.9px;
  padding: 4.4px 7.7px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.excel-table-footer td {
  border: 1px solid var(--border);
  padding: 0;
}

.excel-table-footer .excel-input {
  font-size: 13.75px;
  font-weight: 700;
  height: 33px;
}

.sel-list { display: flex; flex-direction: column; gap: 3.3px; }
.sel-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 8.8px 14.3px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s;
  border: 1px solid transparent;
}
.sel-item:hover { background: var(--bg-card-hover); border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   PRODUCTS / STOCK VIEW
══════════════════════════════════════════════════════════ */
.products-view { padding: 17.6px; }
.products-toolbar { display: flex; gap: 8.8px; margin-bottom: 14.3px; flex-wrap: wrap; align-items: center; }
.filter-search { flex: 1; min-width: 176px; }
.filter-search .input { margin: 0; }

.stock-view { padding: 17.6px; }
.stock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 17.6px; }
.stock-bar-wrap { width: 70.4px; height: 4.4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.stock-bar { height: 100%; border-radius: 2px; transition: width .5s ease; }

/* ══════════════════════════════════════════════════════════
   HISTORY VIEW
══════════════════════════════════════════════════════════ */
.history-view { padding: 17.6px; }
.history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 8.8px;
  overflow: hidden;
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15.4px;
  cursor: pointer;
  transition: background var(--tr);
}
.history-header:hover { background: var(--bg-card-hover); }
.history-id   { font-family: 'IBM Plex Mono', monospace; font-size: 11.55px; font-weight: 700; color: var(--text-sub); }
.history-date { font-size: 12.1px; color: var(--text-sub); }
.history-total { font-family: 'IBM Plex Mono', monospace; font-size: 15.4px; font-weight: 700; color: var(--accent-light); }
.history-arrow { color: var(--text-sub); transition: transform var(--tr); }
.history-arrow.open { transform: rotate(90deg); }
.history-body { border-top: 1px solid var(--border); padding: 13.2px 15.4px; display: none; }
.history-body.open { display: block; }
.history-table { width: 100%; font-size: 12.65px; border-collapse: collapse; }
.history-table th, .history-table td { padding: 5.5px 9.9px; text-align: left; }
.history-table th { color: var(--text-sub); font-weight: 600; font-size: 11.55px; }

/* ══════════════════════════════════════════════════════════
   LOADING & ANIMATIONS
══════════════════════════════════════════════════════════ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 39.6px;
  color: var(--text-muted);
  gap: 9.9px;
}

.spinner {
  width: 19.8px;
  height: 19.8px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes blink      { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ══════════════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5.5px; height: 5.5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   UTILS
══════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.gap-8 { gap: 8.8px; }
.gap-16 { gap: 17.6px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-sub); }
.text-accent { color: var(--accent-light); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.mono { font-family: 'IBM Plex Mono', monospace; }
.mt-8  { margin-top: 8.8px; }
.mt-16 { margin-top: 17.6px; }
.py-20 { padding-top: 22px; padding-bottom: 22px; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px;
  color: var(--text-muted);
  gap: 9.9px;
}
.empty-state-icon { font-size: 44px; opacity: .25; }

/* ══════════════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════════════ */
.tabs-nav {
  margin: -17.6px -17.6px 17.6px -17.6px;
  padding: 0 17.6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}

.tab-item {
  padding: 8.8px 15.4px;
  background: none;
  border: none;
  border-bottom: 2.2px solid transparent;
  color: var(--text-sub);
  font-size: 13.2px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--tr), border-color var(--tr);
  font-family: inherit;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--text); border-bottom-color: var(--accent); }

.mov-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mov-tab {
  display: flex;
  align-items: center;
  gap: 7.7px;
  padding: 9.9px 17.6px;
  background: none;
  border: none;
  border-bottom: 2.2px solid transparent;
  color: var(--text-sub);
  font-size: 13.2px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--tr), background var(--tr), border-color var(--tr);
  font-family: inherit;
}
.mov-tab:hover { color: var(--text); background: rgba(255,255,255,.02); }
.mov-tab.active { color: var(--text); border-bottom-color: var(--accent); background: rgba(26,80,208,.08); }

.mov-pending-count {
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18.7px;
  height: 18.7px;
  border-radius: 9px;
  padding: 0 4.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   PAYMENT METHOD SECTION
══════════════════════════════════════════════════════════ */
#pm-select { font-size: 13.75px; }
#pm-card-input { font-size: 13.75px; }
#pm-new-row { display: none; }
#pm-new-row .input { font-size: 13.75px; }
#pm-hint strong { font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   EXCEL TABLE
══════════════════════════════════════════════════════════ */
.excel-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.excel-table th {
  font-size: 10.45px;
  padding: 6.6px 8.8px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  color: var(--text-sub);
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.excel-table th:nth-child(2) { width: 30%; }

.excel-table td {
  padding: 0;
  border: 1px solid var(--border);
  font-size: 13.2px;
  background: var(--bg-card);
}

.excel-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.018); }
.excel-table tbody tr:hover td { background: var(--bg-card-hover) !important; }

.excel-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 6.6px 8.8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.2px;
  outline: none;
  text-align: center;
  transition: background var(--tr);
}

.excel-input:focus {
  background: var(--accent-glow);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.excel-input[type="number"]::-webkit-inner-spin-button { display: none; }

td:has(.excel-input):hover {
  background: var(--bg-card-hover);
}

.excel-table tbody td:not(:has(.excel-input)) {
  padding: 6.6px 8.8px;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   AUDIT DETAILS
══════════════════════════════════════════════════════════ */
.audit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3.3px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 14.3px;
  margin-bottom: 8.8px;
  cursor: pointer;
  transition: all var(--tr);
}
.audit-card:hover { border-left-color: var(--accent); background: var(--bg-card-hover); }

.audit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6.6px;
}

.audit-details {
  margin-top: 8.8px;
  padding-top: 8.8px;
  border-top: 1px dotted var(--border-light);
  display: none;
}

.audit-items-table {
  width: 100%;
  font-size: 12.1px;
  border-collapse: collapse;
}

.audit-items-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding: 5.5px 13.2px;
}

.audit-items-table td {
  padding: 5.5px 13.2px;
  border-bottom: 1px solid var(--border);
}

.search-box-audit {
  position: sticky;
  top: 0;
  background: var(--bg-sidebar);
  padding: 9.9px 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  margin-bottom: 13.2px;
}

/* ══════════════════════════════════════════════════════════
   TRANSFER CARDS
══════════════════════════════════════════════════════════ */
.nav-item { position: relative; }

.transfer-badge {
  position: absolute;
  top: 4.4px;
  right: 3.3px;
  background: var(--danger);
  color: #fff;
  font-size: 9.9px;
  font-weight: 800;
  min-width: 17.6px;
  height: 17.6px;
  border-radius: 8px;
  padding: 0 4.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 2s infinite;
  box-shadow: 0 0 6px rgba(239,68,68,.5);
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 5px rgba(239,68,68,.4); }
  50%       { box-shadow: 0 0 12px rgba(239,68,68,.7); }
}

.badges-container {
  display: flex;
  gap: 3.3px;
  align-items: center;
}

.transfer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3.3px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 15.4px 17.6px;
  margin-bottom: 13.2px;
  animation: slideUp .18s ease;
  transition: border-color var(--tr);
}
.transfer-card:hover { border-left-color: var(--accent); }

.transfer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  flex-wrap: wrap;
  gap: 7.7px;
}

.transfer-ticket {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14.3px;
  font-weight: 700;
  color: var(--accent-light);
}

.transfer-date { font-size: 11.55px; color: var(--text-sub); }

.transfer-meta {
  display: flex;
  gap: 17.6px;
  flex-wrap: wrap;
  font-size: 12.65px;
  color: var(--text-sub);
  margin-bottom: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}

.transfer-obs {
  font-size: 12.65px;
  color: var(--text-sub);
  font-style: italic;
  margin-bottom: 11px;
  background: rgba(255,255,255,.02);
  border-radius: var(--radius-sm);
  padding: 6.6px 11px;
  border-left: 2.2px solid var(--border-strong);
}

.transfer-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.65px;
  margin-bottom: 13.2px;
}

.transfer-items-table thead th {
  background: var(--bg-sidebar);
  color: var(--text-sub);
  font-size: 10.45px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6.6px 11px;
  text-align: left;
  border: 1px solid var(--border);
}

.transfer-items-table tbody td {
  padding: 7.7px 11px;
  border: 1px solid var(--border);
}

.transfer-items-table tbody tr:hover { background: var(--bg-card-hover); }

.transfer-actions {
  display: flex;
  gap: 9.9px;
  margin-top: 3.3px;
}

/* ══════════════════════════════════════════════════════════
   SETTINGS
══════════════════════════════════════════════════════════ */
.user-mgmt-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.user-mgmt-row:last-child { border-bottom: none; }
.user-mgmt-name { flex: 1; }

.user-mgmt-role {
  font-size: 10.45px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent-glow);
  color: var(--accent-light);
  padding: 2.2px 7.7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-glow-md);
}

.user-branch-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5.5px 9.9px;
  border-radius: var(--radius);
  font-size: 12.65px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color var(--tr);
}
.user-branch-select:focus { border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   SPLASH LOADING
══════════════════════════════════════════════════════════ */
.splash-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-app);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30.8px;
  animation: fadeIn .3s ease;
}

.splash-logo {
  width: min(308px, 65vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.7));
  animation: splashLogoPulse 2s ease-in-out infinite;
}

@keyframes splashLogoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

.splash-spinner {
  width: 33px;
  height: 33px;
  border: 2.5px solid var(--accent-glow);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.splash-text {
  font-size: 12.65px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .06em;
  margin-top: -13.2px;
}

/* ══════════════════════════════════════════════════════════
   INACTIVITY OPTIONS
══════════════════════════════════════════════════════════ */
.inactivity-options {
  display: inline-flex;
  gap: 8.8px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.02);
  padding: 11px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  width: max-content;
  max-width: 100%;
}

.inactivity-option {
  padding: 6.6px 15.4px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-sub);
  font-size: 13.2px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  font-family: inherit;
}

.inactivity-option:hover { border-color: var(--accent); color: var(--text); }

.inactivity-option.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent-glow-md);
}

/* ══════════════════════════════════════════════════════════
   SETTINGS — Secciones card
══════════════════════════════════════════════════════════ */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 19.8px 22px;
  margin-bottom: 17.6px;
}

.settings-section-title {
  font-size: 13.2px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15.4px;
  display: flex;
  align-items: center;
  gap: 8.8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.settings-section-title svg {
  width: 16.5px;
  height: 16.5px;
  stroke: var(--accent-light);
  fill: none;
  flex-shrink: 0;
}

.color-swatch {
  width: 26.4px;
  height: 26.4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.color-swatch.active {
  border-color: var(--text);
  transform: scale(1.08);
}

.color-palette {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  align-items: center;
  padding: 13.2px 15.4px;
  background: rgba(255,255,255,.02);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 15.4px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 8.8px 13.2px;
  border-radius: var(--radius);
  max-width: 308px;
}

.color-picker-swatch {
  position: relative;
  width: 26.4px;
  height: 26.4px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.color-picker-swatch input[type="color"] {
  position: absolute;
  top: -6.6px;
  left: -6.6px;
  width: 39.6px;
  height: 39.6px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.color-picker-text {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.3px;
  font-weight: 700;
  width: 100%;
  outline: none;
  padding: 0;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   LOGIN VIEW
══════════════════════════════════════════════════════════ */
.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: #0d1117;
  overflow: hidden;
  position: relative;
}

.login-brand-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52.8px;
  background: linear-gradient(145deg, #0d1117 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

/* Glow del panel de login usa el accent color */
.login-brand-panel::before {
  content: '';
  position: absolute;
  width: 660px; height: 660px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-brand-logo {
  width: min(715px, 85%);
  max-height: 55vh;
  height: auto;
  object-fit: contain;
  animation: slideUp .5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 48px rgba(0,0,0,0.65));
}

.login-brand-tagline { display: none; }

.login-brand-dev {
  position: absolute;
  bottom: 39.6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8.8px;
  animation: fadeIn .6s ease .4s both;
}

.login-brand-dev-label {
  font-size: 9.9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.login-brand-dev-logo {
  height: 46.2px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity .2s, transform .2s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.login-brand-dev-logo:hover { opacity: 1; transform: scale(1.05); }

.login-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent 100%);
  flex-shrink: 0;
}

.login-form-panel {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52.8px 44px;
  background: #161b22;
  position: relative;
}

.login-box {
  width: 100%;
  animation: slideUp .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-nav-login {
  display: flex;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4.4px;
  border-radius: 8px;
  margin-bottom: 22px;
  gap: 2.2px;
}

.tab-btn {
  flex: 1; padding: 9.9px 13.2px; border: none; background: none;
  color: var(--text-sub); font-size: 14.3px; font-weight: 600;
  cursor: pointer; border-radius: 6px;
  transition: all 0.2s ease; font-family: inherit;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-accent-btn);
}
.tab-btn:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.05); }

.login-input-wrapper {
  position: relative;
  margin-bottom: 11px;
}

.login-input-icon {
  position: absolute; left: 15.4px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 16.5px; pointer-events: none;
  display: flex; align-items: center;
}

.login-input-icon svg {
  width: 17.6px; height: 17.6px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input {
  width: 100%;
  background: #0d1117 !important;
  border: 1px solid #21262d;
  color: var(--text);
  padding: 12.1px 44px;
  border-radius: 7px;
  font-size: 15.4px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.login-input:focus {
  border-color: var(--accent);
  background: #0d1117 !important;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.login-input::placeholder { color: #484f58; }

.pass-toggle {
  position: absolute; right: 13.2px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4.4px; border-radius: 4px; display: flex; align-items: center;
  transition: color .15s;
}
.pass-toggle:hover { color: var(--text-sub); }
.pass-toggle svg { width: 17.6px; height: 17.6px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-login-submit {
  width: 100%; padding: 13.2px;
  border-radius: 5px; font-size: 15.4px; font-weight: 700;
  margin-top: 6.6px;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   MONOSPACE GLOBAL — reemplazar JetBrains Mono por IBM Plex Mono
══════════════════════════════════════════════════════════ */
.cart-subtotal,
.product-preview-price,
.cart-item-code,
.cart-qty-num,
.qty-input,
.search-code-input,
.summary-total-amount,
.stat-value,
.color-picker-text {
  font-family: 'IBM Plex Mono', monospace;
}

/* ══════════════════════════════════════════════════════════
   AUDIT ITEMS
══════════════════════════════════════════════════════════ */
.audit-items-table th { color: var(--text-sub); }

.about-email-link:hover {
  background: rgba(26,80,208,0.22) !important;
  border-color: var(--accent) !important;
  color: var(--text) !important;
}

/* ══════════════════════════════════════════════════════════
   APP FOOTER (ZÓCALO)
══════════════════════════════════════════════════════════ */
.app-footer {
  width: 100%;
  height: 28px;
  min-height: 28px;
  background: var(--bg-topbar);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 100;
}

.app-footer-kbd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ══════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES (aplicado vía JS)
══════════════════════════════════════════════════════════ */
