/* =============================================================================
   Sarah Boutique — Enterprise CSS Design System (v2.0)
   Modern Obsidian Dark Palette • Fluid Responsive Layout • Desktop & Mobile Native
   ============================================================================= */

:root {
  --bg: #07080c;
  --bg-secondary: #0c0e15;
  --surface: #11131c;
  --surface-elevated: #181a26;
  --surface-hover: #1f2333;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-glow: rgba(99, 102, 241, 0.35);

  --emerald: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.15);
  --amber: #f59e0b;
  --amber-light: rgba(245, 158, 11, 0.15);
  --rose: #f43f5e;
  --rose-light: rgba(244, 63, 94, 0.15);
  --purple: #a855f7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-width: 250px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================================================
   1. PANTALLA DE LOGIN
   ============================================================================= */

.login-container {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 20%, rgba(99, 102, 241, 0.12) 0%, rgba(7, 8, 12, 0.95) 75%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.3s ease;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid var(--border-focus);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #a5b4fc;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.login-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.alert-error {
  background: var(--rose-light);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}
.input-with-icon .form-input {
  padding-left: 42px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================================================
   2. APP SHELL LAYOUT (Sidebar + Main + Header)
   ============================================================================= */

.app-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  position: relative;
}

/* --- Sidebar Desktop --- */
.app-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 20px 20px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 10px var(--primary-glow);
}
.brand-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}
.brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: #a5b4fc;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link i {
  font-size: 17px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.nav-link:hover i {
  color: var(--text-primary);
}
.nav-link.active {
  background: var(--primary-light);
  color: #ffffff;
  font-weight: 700;
}
.nav-link.active i {
  color: #a5b4fc;
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 4px;
  background: var(--primary);
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.nav-link.active .nav-badge {
  background: var(--primary);
  color: #ffffff;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.user-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-chip-info {
  flex: 1;
  min-width: 0;
}
.user-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.btn-logout {
  color: var(--text-muted);
}
.btn-logout:hover {
  color: var(--rose);
}

/* --- Main Content Area --- */
.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
}

/* --- Header Navbar --- */
.app-header {
  height: var(--header-height);
  background: rgba(12, 14, 21, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.mobile-menu-btn {
  display: none;
}
.header-breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-breadcrumbs .active {
  color: var(--text-secondary);
}
.header-page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-center {
  flex: 1;
  max-width: 480px;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrapper i.bi-search {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.search-input {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 36px 8px 38px;
  outline: none;
  transition: all 0.2s ease;
}
.search-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.search-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}
.search-clear-btn:hover {
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-user-menu {
  position: relative;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 190px;
  padding: 6px;
  z-index: 200;
  animation: fadeIn 0.15s ease;
}
.dropdown-header {
  padding: 8px 10px;
}
.dropdown-header strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}
.dropdown-header span {
  font-size: 11px;
  color: var(--text-muted);
}
.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 4px 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.dropdown-item.text-danger:hover {
  background: var(--rose-light);
  color: var(--rose);
}

/* --- Content Wrapper --- */
.app-content {
  flex: 1;
  padding: 24px 28px 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.app-view {
  display: none;
  animation: fadeIn 0.2s ease;
}
.app-view.active {
  display: block;
}

.view-header-bar {
  margin-bottom: 20px;
}
.view-header-bar h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.text-muted {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

/* Bottom Nav (Mobile Only) */
.app-bottom-nav {
  display: none;
}

/* =============================================================================
   3. COMPONENTES: BOTONES, KPIS, TABS, LISTADOS
   ============================================================================= */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  color: #fff;
}
.btn-emerald {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
  filter: brightness(1.1);
}
.btn-danger {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  filter: brightness(1.1);
}
.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}
.btn-danger-outline:hover {
  background: var(--rose-light);
  border-color: var(--rose);
  color: #fff;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.btn-icon-subtle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}
.btn-icon-subtle:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--border-focus);
}
.btn-icon-subtle.danger:hover {
  background: var(--rose-light);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.kpi-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.kpi-card.accent-emerald .kpi-icon { background: var(--emerald-light); color: var(--emerald); }
.kpi-card.accent-indigo .kpi-icon { background: var(--primary-light); color: #a5b4fc; }
.kpi-card.accent-amber .kpi-icon { background: var(--amber-light); color: var(--amber); }

/* Segmented Control Tabs */
.tabs-container {
  margin-bottom: 20px;
}
.segmented-control {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
}
.segment-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.segment-btn:hover {
  color: var(--text-primary);
}
.segment-btn.active {
  background: var(--surface-elevated);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}
.tab-count {
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.segment-btn.active .tab-count {
  background: var(--primary);
  color: #fff;
}

/* Dynamic Cards Lists */
.items-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-item-card, .remision-card, .generic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.stock-item-card:hover, .remision-card:hover, .generic-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-elevated);
}

.item-main-info {
  flex: 1;
  min-width: 0;
}
.item-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sku-badge {
  font-size: 11px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: #cbd5e1;
}

.stock-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-pill {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-width: 70px;
}
.stock-pill-taller {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}
.stock-pill-tienda {
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.stock-pill-total {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #ffffff;
}
.pill-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}
.pill-val {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-transito {
  background: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
.badge-recibido {
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.badge-discrepancia {
  background: var(--rose-light);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}
.badge-danger {
  background: var(--rose-light);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}
.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
}

/* Grid Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}
.product-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.product-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #a5b4fc;
}
.product-price {
  font-size: 16px;
  font-weight: 800;
  color: #34d399;
}

/* Table Design */
.data-table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.data-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.data-table tr:hover td {
  background: var(--surface-hover);
}

/* =============================================================================
   4. MODALES & DIÁLOGOS
   ============================================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #131520;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: modalScale 0.2s ease;
}

.modal-card-lg {
  max-width: 780px;
}

.lote-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.lote-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.lote-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.lote-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.lote-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 18px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.modal-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-light);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.modal-badge-amber {
  font-size: 10px;
  font-weight: 700;
  background: var(--amber-light);
  color: #fcd34d;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.modal-badge-indigo {
  font-size: 10px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn-close-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.btn-close-circle:hover {
  color: #fff;
  background: var(--surface-hover);
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Cuadre 1:1 components */
.cuadre-banner {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.cuadre-banner i {
  font-size: 20px;
  color: #a5b4fc;
}
.cuadre-banner strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.cuadre-banner p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.cuadre-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.cuadre-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cuadre-item-info strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.cuadre-item-info span {
  font-size: 11px;
  color: var(--text-muted);
}
.cuadre-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cuadre-input {
  width: 65px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 8px;
}

.cuadre-summary-row {
  display: flex;
  justify-content: space-around;
  padding: 10px 14px;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.text-emerald { color: #34d399; }
.text-rose { color: #fb7185; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #181a26;
  border: 1px solid var(--border);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}
.toast.success { border-color: var(--emerald); }
.toast.error { border-color: var(--rose); }

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Chips y selectores de Tallas */
.size-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.size-chip {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.size-chip:hover {
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.size-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border-color: var(--primary);
  color: #a5b4fc;
  box-shadow: 0 0 12px var(--primary-glow);
}
.size-chip.active::after {
  content: '✓';
  font-size: 11px;
}

/* Category filter pills */
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch;
}
.category-pill {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.category-pill:hover {
  border-color: var(--border-focus);
  color: #fff;
}
.category-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Product Card mejoras */
.product-card {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Color swatch dot */
.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  vertical-align: middle;
}

/* =============================================================================
   5. RESPONSIVE AUTOMÁTICO (Mobile / Tablet < 992px vs Desktop >= 992px)
   ============================================================================= */

@media (max-width: 991px) {
  /* Sidebar pasa a ser Offcanvas / Drawer móvil */
  .app-sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
  }
  .sidebar-overlay.active {
    display: block;
  }

  /* Main se expande al 100% del ancho */
  .app-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: 70px; /* Margen para bottom nav */
  }

  /* Header móvil compacto */
  .app-header {
    padding: 0 14px;
    height: 56px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-breadcrumbs {
    display: none;
  }
  .header-page-title {
    font-size: 15px;
  }
  .btn-header-action span {
    display: none; /* Solo icono en móvil */
  }
  .btn-header-action {
    padding: 6px 10px;
  }
  .header-center {
    display: none; /* Búsqueda contextual en móvil */
  }

  /* KPIs en 2 columnas */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .kpi-card {
    padding: 14px;
  }
  .kpi-value {
    font-size: 22px;
  }

  /* Content padding */
  .app-content {
    padding: 14px 12px 30px;
  }

  /* Segmented tabs en scroll horizontal */
  .tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .segmented-control {
    width: max-content;
  }

  /* Tarjetas móviles */
  .stock-item-card, .remision-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }
  .stock-pills-row {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }

  /* Bottom Nav visible en móvil */
  .app-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(12, 14, 21, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    flex: 1;
    padding: 6px 0;
    transition: color 0.15s;
  }
  .bottom-nav-item i {
    font-size: 18px;
  }
  .bottom-nav-item.active {
    color: var(--primary);
  }

  .toast-container {
    bottom: 74px;
    right: 14px;
    left: 14px;
  }
  .toast {
    justify-content: center;
  }

  /* Modales en bottom sheet móvil */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 85vh;
  }
}

/* =============================================================================
   12. TOMA DE INVENTARIO FÍSICO (AUDITORÍA TIENDA)
   ============================================================================= */

.it-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.it-matrix-table th {
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.it-matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.it-matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.conteo-input {
  width: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.conteo-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.badge-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.badge-delta-zero {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}
.badge-delta-pos {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-delta-neg {
  background: var(--rose-light);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.badge-delta-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.it-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
}
.it-summary-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* --- Responsive Views para Toma de Inventario Físico --- */
@media (min-width: 768px) {
  .it-mobile-view {
    display: none !important;
  }
  .it-desktop-view {
    display: block;
  }
  .it-mobile-sticky-footer {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .it-desktop-view {
    display: none !important;
  }
  .it-mobile-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  #modalInventarioTaller .modal-card,
  #modalInventarioTienda .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 96vh !important;
    max-height: 96vh !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #modalInventarioTaller .modal-header,
  #modalInventarioTienda .modal-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  #modalInventarioTaller .modal-body,
  #modalInventarioTienda .modal-body {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  #modalInventarioTaller .modal-footer,
  #modalInventarioTienda .modal-footer {
    display: none !important; /* Reemplazado por sticky footer móvil */
  }
}

#modalConfirmarInventarioTaller,
#modalConfirmarInventarioTienda {
  z-index: 3000 !important;
}


/* Header Móvil y Progreso */
.it-mobile-header {
  padding: 12px 14px 10px;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.it-progress-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.it-progress-track {
  height: 6px;
  width: 100%;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}
.it-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #6366f1, #10b981);
  transition: width 0.25s ease-out;
}

/* Buscador y Filtros Pills en Móvil */
.it-mobile-search-row {
  margin-top: 10px;
  position: relative;
}
.it-mobile-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 34px 8px 12px;
  color: #fff;
  font-size: 13px;
}
.it-mobile-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.it-search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
}
/* Selectores jerárquicos de Modelo y Color en Header Móvil */
.it-mobile-filter-selects {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.it-mobile-filter-selects .it-select-wrap {
  position: relative;
}
.it-mobile-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 26px 8px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  transition: border-color 0.15s ease;
}
.it-mobile-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.it-mobile-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background-color: rgba(255, 255, 255, 0.02);
}

.it-filter-pills {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.it-pill-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.it-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.it-pill-count {
  font-size: 10px;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* Contenedor de Grupos por Modelo Móvil */
.it-mobile-groups-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 100px;
}
.it-model-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.it-model-group.completed {
  border-color: rgba(16, 185, 129, 0.4);
}
.it-model-group-header {
  padding: 12px 14px;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}
.it-model-group-header:active {
  background: rgba(255, 255, 255, 0.05);
}
.it-model-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.it-model-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.it-model-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.it-model-badge-check {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.it-model-group.completed .it-model-badge-check {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.it-model-chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.it-model-group.collapsed .it-model-chevron {
  transform: rotate(-90deg);
}
.it-model-group.collapsed .it-model-variants-list,
.it-model-group.collapsed .it-model-color-bar {
  display: none !important;
}

/* Barra de colores dentro de cada modelo en el listado móvil */
.it-model-color-bar {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.it-color-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.it-color-chips-scroll {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}
.it-color-chip {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
  user-select: none;
}
.it-color-chip:hover {
  border-color: var(--primary);
  color: #fff;
}
.it-color-chip:active {
  transform: scale(0.96);
}
.it-color-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.it-color-chip .it-chip-count {
  font-size: 10px;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* Fila de Variante Compacta (~85-95px) */
.it-variant-row {
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  transition: background-color 0.15s;
}
.it-variant-row:active {
  background: rgba(255, 255, 255, 0.015);
}
.it-variant-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.it-variant-attr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.it-variant-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.it-variant-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Stepper Numérico Touch-Optimized (Touch target >= 44px) */
.it-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  overflow: hidden;
}
.it-stepper-btn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: background-color 0.15s;
}
.it-stepper-btn:active {
  background: rgba(255, 255, 255, 0.15);
}
.it-stepper-input {
  width: 64px;
  height: 44px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  padding: 0 4px;
  -moz-appearance: textfield;
}
.it-stepper-input::-webkit-outer-spin-button,
.it-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.it-stepper-input:focus {
  outline: none;
  background: rgba(99, 102, 241, 0.1);
}

/* Información Secundaria y Resultado en Móvil */
.it-variant-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 90px;
}
.it-variant-system-label {
  font-size: 11px;
  color: var(--text-muted);
}
.it-variant-system-label strong {
  color: #a5b4fc;
}

/* Sticky Footer Móvil */
.it-mobile-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 17, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 1000;
}
.it-footer-stat {
  display: flex;
  flex-direction: column;
}
.it-footer-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.it-footer-stat-val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.it-footer-actions {
  display: flex;
  gap: 8px;
}
.it-btn-draft {
  padding: 10px 14px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.it-btn-draft:active {
  background: rgba(255, 255, 255, 0.08);
}
.it-btn-discard {
  padding: 10px 12px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.it-btn-discard:active {
  background: rgba(239, 68, 68, 0.2);
}
.it-btn-finish {
  padding: 10px 16px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.it-btn-finish:active {
  transform: scale(0.98);
}

/* Modal de Confirmación de Inventario */
.it-confirm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.it-confirm-kpi-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.it-confirm-kpi-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.it-confirm-kpi-num {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

/* Botones de Asistente de Conteo Acumulado y Badges de Fórmula */
.it-btn-calc {
  width: 38px;
  height: 44px;
  min-height: 44px;
  min-width: 38px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  color: #a5b4fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  flex-shrink: 0;
}
.it-btn-calc:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.5);
}
.it-btn-calc:active {
  transform: scale(0.95);
  background: rgba(99, 102, 241, 0.35);
}

.it-btn-calc-desk {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  color: #a5b4fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.it-btn-calc-desk:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.45);
}
.it-btn-calc-desk:active {
  transform: scale(0.95);
}

.it-formula-badge {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.it-formula-badge-desk {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 4px;
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Asistente Modal de Conteo Acumulado */
.asistente-conteo-preview-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.asistente-box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.asistente-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.asistente-box-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.asistente-box-item.highlight .asistente-box-val {
  color: #38bdf8;
}
.asistente-box-arrow {
  font-size: 18px;
  color: var(--text-muted);
  opacity: 0.7;
}

.asistente-formula-banner {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 10px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.asistente-op-toggle {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.asistente-op-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.asistente-op-btn.active {
  background: var(--surface-card);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.asistente-chips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.asistente-chip {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  touch-action: manipulation;
}
.asistente-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}
.asistente-chip:active {
  transform: scale(0.95);
  background: rgba(99, 102, 241, 0.35);
}

/* =============================================================================
   13. PUNTO DE VENTA (POS TIENDA)
   ============================================================================= */

.pos-wrapper {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 20px;
  align-items: start;
}

.pos-catalog-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pos-filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pos-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.pos-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 10px 38px 10px 36px;
  font-size: 13px;
  transition: all 0.15s ease;
}

.pos-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.pos-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
}
.pos-search-clear:hover {
  color: #fff;
}

.pos-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pos-stock-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.pos-stock-filter-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--amber);
  color: #fbbf24;
}

.pos-category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pos-category-pills::-webkit-scrollbar {
  display: none;
}

.pos-cat-pill {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.pos-cat-pill:hover, .pos-cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

/* Compact Mobile-Friendly POS Card */
.pos-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.pos-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-sm);
}

.pos-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.pos-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pos-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-top: 2px;
}

.pos-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald);
  white-space: nowrap;
  text-align: right;
}

.pos-card-tiers {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.pos-stock-badge {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pos-stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pos-stock-badge.out-stock {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px dashed rgba(244, 63, 94, 0.25);
}

/* Card Action Buttons (Low Clicks) */
.pos-card-actions {
  margin-top: 2px;
}

.btn-pos-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pos-add.direct-add {
  background: var(--emerald);
  color: #064e3b;
}
.btn-pos-add.direct-add:hover {
  background: #10b981;
  color: #022c22;
}

.btn-pos-add.select-variant {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: #fff;
}
.btn-pos-add.select-variant:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
}

.btn-pos-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Quick Variant Stepper Flow Modal (Mobile-First Sheet) */
.pos-variant-modal-card {
  max-width: 500px;
  width: 100%;
}

.pos-vp-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-light);
}

.pos-vp-price-tag {
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald);
  margin-top: 3px;
}

.pos-vp-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.pos-vp-step-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.pos-vp-step-section:focus-within {
  border-color: rgba(99, 102, 241, 0.4);
}

.pos-vp-step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.pos-vp-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pos-vp-selected-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 8px;
  border-radius: 9999px;
  margin-left: auto;
}

/* Paso 1: Color Chips */
.pos-vp-colors-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pos-vp-color-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pos-vp-color-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: #fff;
}

.pos-vp-color-chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.pos-vp-color-chip.out-of-stock {
  opacity: 0.55;
  border-style: dashed;
}

.pos-vp-chip-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.pos-vp-chip-stock {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.pos-vp-color-chip.active .pos-vp-chip-stock {
  background: rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

.pos-vp-chip-stock.in {
  color: #34d399;
}

.pos-vp-chip-stock.zero {
  color: #fb7185;
}

/* Paso 2: Tallas (Grid táctil grande) */
.pos-vp-sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.pos-vp-size-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-align: center;
  min-height: 56px;
}

.pos-vp-size-btn:hover:not(.disabled) {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.pos-vp-size-btn.active {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.28);
}

.pos-vp-size-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

.pos-vp-size-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.pos-vp-size-btn.active .pos-vp-size-name {
  color: #34d399;
}

.pos-vp-size-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 3px;
}

.pos-vp-size-btn.active .pos-vp-size-sub {
  color: #a7f3d0;
}

.pos-vp-size-sub.zero {
  color: #fb7185;
}

.pos-vp-size-incart {
  font-size: 9px;
  font-weight: 800;
  color: #818cf8;
  margin-top: 2px;
}

/* Paso 3: Stepper de cantidad y botón Agregar */
.pos-vp-stock-indicator {
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
}

.pos-vp-stock-indicator.in {
  color: #34d399;
}

.pos-vp-stock-indicator.zero {
  color: #fb7185;
}

.pos-vp-qty-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pos-vp-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 44px;
}

.pos-vp-step-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  width: 38px;
  height: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pos-vp-step-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pos-vp-step-btn:active {
  background: rgba(99, 102, 241, 0.25);
}

.pos-vp-qty-input {
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  outline: none;
}

.pos-vp-add-btn {
  flex: 1;
  height: 44px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* In-cart summary list inside variant modal */
.pos-vp-in-cart-summary {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 11px;
  color: #c7d2fe;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pos-vp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
}

.pos-vp-footer-stock {
  font-size: 12px;
  color: var(--text-muted);
}

.pos-quick-flow-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  color: #fff;
}

.pos-quick-flow-btn:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

/* Switch Toggle Component & Parametrizaciones */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  transition: all .25s ease;
  border-radius: 34px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: all .25s ease;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* POS Cart Panel */
.pos-cart-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.pos-drawer-header-mobile {
  display: none;
}

.pos-cart-header-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.pos-cart-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-cart-items {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.pos-cart-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pos-cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.pos-cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.pos-cart-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.pos-cart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-stepper-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  user-select: none;
}

.qty-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.qty-stepper-val {
  width: 34px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
}

/* Descuento Directo / Manual Card */
.pos-discount-card {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.pos-discount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pos-discount-prefix {
  position: absolute;
  left: 10px;
  font-weight: 700;
  color: var(--amber);
  font-size: 12px;
  pointer-events: none;
}

.pos-discount-input {
  width: 100%;
  padding-left: 34px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #fbbf24 !important;
  text-align: right;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.pos-discount-input:focus {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
}

.pos-payment-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pos-pay-btn {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 48px;
  justify-content: center;
}

.pos-pay-btn:hover, .pos-pay-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary);
  color: #fff;
}

.pos-cash-helper {
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.cash-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cash-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.cash-chip:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.pos-ticket-paper {
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  margin: 0 auto;
}

/* Mobile-Specific Adaptations for POS */
@keyframes slideUpPOS {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 1024px) {
  .pos-wrapper {
    grid-template-columns: 1fr;
    padding-bottom: 74px; /* Room for floating cart bar */
  }

  .pos-cart-panel {
    display: none; /* Hidden on mobile until opened */
  }

  .pos-cart-panel.drawer-open {
    display: flex;
    position: fixed;
    top: 48px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    border-radius: 20px 20px 0 0;
    background: var(--surface);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    padding: 16px 18px 30px 18px;
    animation: slideUpPOS 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .pos-drawer-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }

  .pos-cart-header-desktop {
    display: none;
  }

  .pos-mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  }

  .pos-mobile-cart-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .pos-mobile-cart-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 16px;
  }

  .pos-mobile-cart-badge span {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--emerald);
    color: #064e3b;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-full);
  }

  .pos-mobile-cart-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .pos-mobile-cart-label {
    font-size: 11px;
    color: var(--text-secondary);
  }

  .pos-mobile-cart-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--emerald);
  }

  .pos-mobile-cart-btn {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .pos-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1045;
  }

  /* Variant modal bottom sheet on mobile */
  .pos-variant-modal-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    animation: slideUpPOS 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .pos-vp-variants-grid {
    grid-template-columns: 1fr;
    max-height: 60vh;
  }
}

/* ==========================================================================
   Multi-Model Cutting Batch (Lotes de Corte con Múltiples Modelos)
   ========================================================================== */
.nl-modelo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  transition: all 0.2s ease;
}
.nl-modelo-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.nl-modelo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}
.nl-modelo-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nl-modelo-header-title strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.nl-subtotal-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.btn-quitar-modelo {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.btn-quitar-modelo:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
}

/* =============================================================================
   STOCK DEPÓSITOS: TOOLBAR, DATA TABLE & FILTROS INTUITIVOS
   ============================================================================= */

.stock-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stock-quick-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.stock-pill-btn:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--border);
}

.stock-pill-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.stock-pill-btn .pill-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 11px;
}

.stock-pill-btn.active .pill-badge {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

.stock-view-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.stock-view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.stock-view-toggle-btn.active {
  background: var(--surface-elevated);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stock-toolbar-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stock-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.stock-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.stock-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  transition: border-color 0.15s;
}

.stock-search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.stock-product-select {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  min-width: 190px;
  cursor: pointer;
}

.stock-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-summary-bar strong {
  color: #fff;
}

.stock-badge-taller {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.stock-badge-tienda {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.stock-badge-zero {
  color: var(--text-muted);
  font-size: 12px;
  padding: 3px 8px;
}

.stock-th-sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.stock-th-sortable:hover {
  color: #fff;
}

.stock-th-sortable i {
  margin-left: 4px;
  font-size: 11px;
}

/* =============================================================================
   ENTREGAS & DEVOLUCIONES EN DETALLE DE LOTE
   ============================================================================= */

.entrega-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
}

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

.entrega-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.entrega-kpi-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.entrega-kpi-box .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.entrega-kpi-box .val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.devolucion-timeline-item {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.devolucion-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.devolucion-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dev-item-pill {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* =============================================================================
   SELECTOR INTELIGENTE DE PRENDA, COLOR Y TALLA EN CORTE
   ============================================================================= */

.nl-item-picker-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nl-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.nl-picker-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.nl-picker-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nl-fg-model {
  flex: 1.3;
  min-width: 200px;
}

.nl-fg-color {
  flex: 1;
  min-width: 170px;
}

.nl-sizes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.nl-sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.nl-size-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.nl-size-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.nl-size-card.has-value {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.05);
}

.nl-size-card-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.nl-size-card.has-value .nl-size-card-header {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.nl-size-card-body {
  padding: 6px;
  display: flex;
  justify-content: center;
}

.nl-size-qty-input {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
  padding: 4px;
}

.nl-size-qty-input:focus {
  outline: none;
}

.nl-size-qty-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.nl-sizes-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

/* Lista de Modelos y Variantes Agregadas al Lote */
.nl-model-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
}

.nl-model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 8px;
}

.nl-model-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
}

.nl-variant-row-qty {
  width: 85px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 4px 8px;
  display: inline-block;
}

.btn-remove-variant {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-remove-variant:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

@media (max-width: 640px) {
  .nl-picker-row {
    flex-direction: column;
    gap: 10px;
  }
  .nl-fg-model,
  .nl-fg-color {
    width: 100%;
    min-width: 100%;
  }
  .nl-sizes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------- */
/* Buscadores y Chips Interactivos en Registrar Lote de Corte                 */
/* -------------------------------------------------------------------------- */
.nl-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.nl-search-input-wrap .nl-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
}

.nl-search-input-wrap .form-input {
  padding-left: 28px;
  padding-right: 26px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--border);
  transition: all 0.15s ease;
}

.nl-search-input-wrap .form-input:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.nl-search-input-wrap .nl-clear-btn {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1;
  transition: color 0.15s ease;
}

.nl-search-input-wrap .nl-clear-btn:hover {
  color: #fff;
}

.nl-color-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding: 2px 0;
}

.nl-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  user-select: none;
}

.nl-color-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.nl-color-chip.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

/* Toolbar de Lotes en vista de Producción */
.prod-lotes-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.prod-quick-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.prod-pill-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.prod-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.prod-pill-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #fff;
}

/* =============================================================================
   11. STOCK EN DEPÓSITOS: VISTAS ESPECIALIZADAS, KARDEX & MODALES LOGÍSTICOS
   ============================================================================= */

/* Hero Banner para Taller y Tienda */
.stock-deposit-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, rgba(30, 34, 53, 0.95), rgba(19, 21, 32, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stock-deposit-hero.hero-taller {
  border-left: 4px solid var(--primary);
}

.stock-deposit-hero.hero-tienda {
  border-left: 4px solid var(--emerald);
}

.stock-deposit-hero-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-deposit-hero-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.stock-deposit-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Badges específicos para Remisiones y Devoluciones */
.badge-dev {
  background: rgba(244, 63, 94, 0.18) !important;
  color: #fda4af !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
}

.badge-rem {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
}

.badge-origen-externo {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-origen-taller {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Kardex Timeline */
.kardex-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.kardex-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}

.kardex-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.kardex-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.kardex-icon-in {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.kardex-icon-out {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.kardex-content {
  flex: 1;
  min-width: 0;
}

.kardex-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.kardex-reason {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.kardex-delta-badge {
  font-size: 14px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.kardex-delta-positive {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

.kardex-delta-negative {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.12);
}

.kardex-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.kardex-notes {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

/* Multi-Item Selector & Table */
.multi-item-table {
  width: 100%;
  border-collapse: collapse;
}

.multi-item-table th {
  padding: 8px 12px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.multi-item-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

/* =============================================================================
   14. CUADRE & CIERRE DIARIO DE CAJA
   ============================================================================= */
.cierre-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cierre-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.cierre-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.cierre-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.cierre-kpi-card.accent-emerald::before { background: var(--emerald); }
.cierre-kpi-card.accent-blue::before { background: #3b82f6; }
.cierre-kpi-card.accent-purple::before { background: #a855f7; }
.cierre-kpi-card.accent-amber::before { background: var(--amber); }

.cierre-arqueo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cierre-arqueo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cierre-diferencia-box {
  padding: 18px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cierre-diferencia-exact {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.cierre-diferencia-sobrante {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.cierre-diferencia-faltante {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.cierre-billetes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.cierre-billete-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cierre-billete-item label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.cierre-billete-item input {
  width: 100%;
  text-align: center;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 4px;
}

/* =============================================================================
   15. GESTIÓN DE USUARIOS Y ROLES (RBAC)
   ============================================================================= */
.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-role-admin {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-role-vendedor {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-role-taller {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-role-logistics {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

/* Chips de Colores Existentes en Detalle de Producto */
.dp-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dp-color-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.dp-color-pill.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* =============================================================================
   15. MÓDULO DE FINANZAS & DASHBOARD EJECUTIVO (Obsidian Dark Luxury)
   ============================================================================= */

.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.finance-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.finance-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
}

.finance-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

.finance-kpi-card.accent-emerald::before { background: linear-gradient(90deg, var(--emerald), #34d399); }
.finance-kpi-card.accent-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.finance-kpi-card.accent-amber::before { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.finance-kpi-card.accent-purple::before { background: linear-gradient(90deg, var(--purple), #c084fc); }

.finance-kpi-card .finance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-kpi-card.accent-emerald .finance-badge { background: var(--emerald-light); color: var(--emerald); }
.finance-kpi-card.accent-blue .finance-badge { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.finance-kpi-card.accent-amber .finance-badge { background: var(--amber-light); color: var(--amber); }
.finance-kpi-card.accent-purple .finance-badge { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.finance-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 6px 0;
}

.finance-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Secondary Panels */
.finance-panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.finance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.finance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.finance-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Location comparison bar */
.finance-loc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
}

.finance-loc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.finance-loc-values {
  text-align: right;
}

.finance-progress-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
}

.finance-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Categorias List */
.finance-cat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.finance-cat-item:last-child {
  border-bottom: none;
}

.finance-cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Ranking Table Badges */
.finance-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.finance-rank-1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.finance-rank-2 {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #000;
}

.finance-rank-3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

/* Scope Filters */
.finance-scope-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.finance-scope-btn:hover {
  background: var(--surface-hover);
  color: #fff;
}

.finance-scope-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Print Rules for Financial Reports */
@media print {
  .app-sidebar,
  .sidebar-overlay,
  .app-header,
  .app-bottom-nav,
  .toast-container,
  .modal-backdrop,
  .btn,
  .finance-scope-btn,
  .stock-search-wrap,
  select,
  .btn-close-circle {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt;
  }

  .app-layout,
  .app-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #view-finance {
    display: block !important;
  }

  .finance-card,
  .finance-kpi-card {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .finance-kpi-value,
  .finance-card-title,
  h3, strong {
    color: #000 !important;
  }

  .data-table th {
    background: #f1f5f9 !important;
    color: #000 !important;
  }

  .data-table td {
    color: #000 !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
}

/* ==========================================================================
   Friendly Model Picker for Guided Sales (Venta Guiada Stepper)
   ========================================================================== */
.vp-model-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.vp-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.vp-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted, #94a3b8);
  font-size: 14px;
  pointer-events: none;
}

.vp-search-input {
  width: 100%;
  padding-left: 36px !important;
  padding-right: 36px !important;
  height: 42px;
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md, 8px);
  color: #fff;
  transition: all 0.2s ease;
}

.vp-search-input:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.vp-search-clear {
  position: absolute;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vp-search-clear:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

/* Category Filter Chips */
.vp-category-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
}

.vp-category-chips-scroll::-webkit-scrollbar {
  height: 4px;
}

.vp-category-chips-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.vp-cat-chip {
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #cbd5e1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.vp-cat-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.vp-cat-chip.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Model Results List */
.vp-model-results-list {
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
  scrollbar-width: thin;
}

.vp-model-results-list::-webkit-scrollbar {
  width: 5px;
}

.vp-model-results-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.vp-model-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 7px);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.vp-model-item:hover, .vp-model-item.keyboard-focus {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.38);
  transform: translateX(2px);
}

.vp-model-item.active-selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

.vp-mi-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.vp-mi-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-mi-name mark {
  background: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 800;
}

.vp-mi-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.vp-mi-cat {
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

.vp-mi-dot {
  color: rgba(255, 255, 255, 0.2);
  font-size: 8px;
}

.vp-mi-price {
  color: #34d399;
  font-weight: 700;
}

.vp-mi-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 10px;
}

.vp-mi-stock {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vp-mi-stock.stock-ok {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.vp-mi-stock.stock-zero {
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.vp-mi-arrow {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  transition: transform 0.15s ease;
}

.vp-model-item:hover .vp-mi-arrow {
  color: var(--primary, #6366f1);
  transform: translateX(2px);
}

/* Empty Search State */
.vp-empty-search {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vp-empty-search i {
  font-size: 24px;
  color: var(--text-muted, #64748b);
  opacity: 0.6;
}

/* Selected Model Card (Collapsed State) */
.vp-selected-model-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md, 8px);
  padding: 10px 14px;
  animation: fadeInPOS 0.2s ease;
}

.vp-smc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.vp-smc-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.vp-smc-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-smc-sub {
  font-size: 11.5px;
  color: var(--text-secondary, #cbd5e1);
  margin-top: 2px;
}

.vp-smc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vp-smc-stock {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.vp-smc-change-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


