/* ==========================================================================
   APP CSS — Sistema de Diseño NexoEnvío Link (Panel Tienda, SuperAdmin, Auth)
   Proyecto: GENERADOR-LINK (NexoEnvío Link SaaS)
   Tablas BD afectadas: Ninguna
   Última actualización: 2026-11-06
   ========================================================================== */

/* --- 1. TOKENS SEMÁNTICOS OFICIALES (CLARO / OSCURO — CERO ÍNDIGO) --- */
:root,
[data-theme="light"] {
  --shell-navy: #082542;
  --shell-navy-hover: #0d3258;
  --shell-navy-active: #0b5cad;
  --brand-primary: #0b5cad;
  --brand-primary-teal: #0e7490;
  --brand-primary-soft: #e0f2fe;
  --brand-accent: #10b981;
  --brand-accent-hover: #059669;
  --brand-accent-soft: #d1fae5;

  --surface-bg: #f3f6f9;
  --surface-card: #ffffff;
  --surface-elevated: #f8fafc;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-navy: #f8fafc;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(8, 37, 66, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

[data-theme="dark"] {
  --shell-navy: #06182c;
  --shell-navy-hover: #0b2542;
  --shell-navy-active: #0284c7;
  --brand-primary: #38bdf8;
  --brand-primary-teal: #22d3ee;
  --brand-primary-soft: rgba(56, 189, 248, 0.15);
  --brand-accent: #10b981;
  --brand-accent-hover: #34d399;
  --brand-accent-soft: rgba(16, 185, 129, 0.16);

  --surface-bg: #0b131e;
  --surface-card: #111c2d;
  --surface-elevated: #17263b;
  --border-subtle: #1e293b;
  --border-strong: #334155;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-on-navy: #f8fafc;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* --- 2. RESET Y REGLAS GLOBALES ANTI-OVERFLOW --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--surface-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.tabular-nums,
.kpi-value,
.mono-code {
  font-variant-numeric: tabular-nums;
}

.mono-code {
  font-family: var(--font-mono);
}

.fila-oculta,
.hidden {
  display: none !important;
}

/* Evitar autofill amarillo en Chrome/Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-card) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* --- 3. BOTONES, INPUTS Y PÍLDORAS (MIN TOUCH 40PX / 44PX) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-emerald {
  background-color: var(--brand-accent);
  color: #ffffff;
}
.btn-emerald:hover {
  background-color: var(--brand-accent-hover);
}

.btn-primary {
  background-color: #0b5cad;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #094a8c;
}

.btn-outline {
  background-color: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background-color: var(--surface-elevated);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-icon-only {
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
}

.input-control,
.select-control {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--surface-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-control:focus,
.select-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pill.active {
  background-color: #0b5cad;
  border-color: #0b5cad;
  color: #ffffff;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-emerald {
  background-color: var(--brand-accent-soft);
  color: #047857;
}
[data-theme="dark"] .badge-emerald {
  color: #34d399;
}
.badge-neutral {
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.badge-amber {
  background-color: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
[data-theme="dark"] .badge-amber {
  color: #fbbf24;
}

/* Badges de Couriers */
.courier-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}
.courier-dot.shalom { background-color: #0b5cad; }
.courier-dot.olva { background-color: #ea580c; }
.courier-dot.marvisur { background-color: #059669; }

/* --- 4. LAYOUT SHELL (SIDEBAR NAVY + TOPBAR COMPACTA + WORKSPACE) --- */
.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100dvh;
  width: 100%;
}

.app-sidebar {
  background-color: var(--shell-navy);
  color: var(--text-on-navy);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 40;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.sidebar-brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}
.sidebar-brand-title span {
  color: #10b981;
}
.sidebar-brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sidebar-store-card {
  margin: 14px 0;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-store-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0b5cad);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.store-meta {
  min-width: 0;
}
.store-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  overflow-wrap: anywhere;
}
.store-ruc {
  font-size: 11.5px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
  background-color: var(--shell-navy-hover);
  color: #ffffff;
}

.sidebar-link.active {
  background-color: var(--shell-navy-active);
  color: #ffffff;
}

.sidebar-plan-box {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius-md);
  background-color: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-plan-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.sidebar-plan-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 10px;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* --- 5. TOPBAR OPERATIVA COMPACTA --- */
.app-topbar {
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.mobile-menu-btn {
  display: none;
}

.smartlink-pill-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  min-height: 40px;
}

.smartlink-code-display {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
  border: none;
  background: transparent;
  width: 170px;
  outline: none;
}

.topbar-quota-meter {
  display: flex;
   flex-direction: column;
  gap: 4px;
  min-width: 220px;
}
.quota-meter-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.quota-meter-text strong {
  color: var(--text-primary);
}
.quota-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background-color: var(--border-subtle);
  overflow: hidden;
}
.quota-progress-fill {
  height: 100%;
  border-radius: 999px;
  background-color: var(--brand-accent);
  transition: width 0.25s ease;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- 6. WORKSPACE PRINCIPAL (/inicio y /plataforma) --- */
.workspace-container {
  padding: 16px 20px 32px;
  min-width: 0;
  flex: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 18px;
  align-items: start;
}

.card-panel {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  min-width: 0;
}

.link-hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.link-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.courier-pills-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle);
}

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

.section-header h1,
.section-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.pill-carousel::-webkit-scrollbar {
  display: none;
}

/* Tabla Operativa de Envíos */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-primary);
}

.data-table tbody tr:hover {
  background-color: var(--surface-elevated);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.action-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.14s ease;
}
.action-circle-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.action-circle-btn.wa-normal {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}
.action-circle-btn.wa-business {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.35);
}

/* Tarjetas Móviles para Bandeja Operativa */
.mobile-cards-list {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.reg-mobile-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--surface-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-mobile-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.reg-mobile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

/* Barra Flotante de Acciones en Lote */
.bulk-action-bar {
  margin-top: 12px;
  background-color: var(--shell-navy);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- 7. COLUMNA DE VISTA PREVIA MÓVIL EN VIVO --- */
.live-preview-column {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  position: sticky;
  top: 14px;
}

.phone-Simulator-frame {
  border: 2px solid var(--border-strong);
  border-radius: 20px;
  background-color: var(--surface-elevated);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-step-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
}

.preview-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #0b5cad;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

/* --- 8. SUPERADMIN (/plataforma) --- */
.kpi-strip-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-strip-7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .kpi-card-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(15, 23, 42, 0.9));
  border-color: rgba(52, 211, 153, 0.4);
}

.kpi-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kpi-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.kpi-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.exec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.exec-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.exec-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.exec-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.segmented-toggle {
  display: inline-flex;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.segmented-btn {
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.segmented-btn.active {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.savings-badge-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  min-width: 112px;
}

.progress-bar-track {
  height: 7px;
  background-color: var(--surface-elevated);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.ecosystem-health-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  align-items: center;
}

.health-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--border-subtle);
  min-width: 0;
}

.tenants-master-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 14px;
  align-items: start;
}

.tenants-side-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tenant-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.tenant-row-accent {
  border-left: 4px solid #10b981;
}
.tenant-row-accent.suspended {
  border-left-color: #ef4444;
}
.tenant-row-accent.warning {
  border-left-color: #f59e0b;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* --- 9. LOGIN Y REGISTRO (/login, /registro) --- */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 45% 55%;
  width: 100%;
}

.auth-hero-side {
  background: linear-gradient(155deg, #061b33 0%, #082542 55%, #0b4a6f 100%);
  color: #f8fafc;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-scene-box {
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background-color: var(--surface-bg);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px 28px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper .input-control {
  padding-right: 44px;
}
.password-eye-btn {
  position: absolute;
  right: 4px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- 10. MODALES Y TOASTS (CERO ALERT/CONFIRM) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 25, 45, 0.62);
  backdrop-filter: blur(3px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* --- MODAL INTERACTIVO PREMIUM (NexoUI.confirmModal + Rotación de Enlace) --- */
@keyframes nexoConfirmPopIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nexoPulseHalo {
  0%, 100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.12;
  }
}

@keyframes nexoFlashBorder {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    border-color: #10b981;
  }
  100% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.nexo-confirm-backdrop {
  z-index: 1400;
  background: rgba(8, 19, 38, 0.68);
  backdrop-filter: blur(6px);
}

.nexo-confirm-card {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 26px 68px rgba(8, 18, 38, 0.44);
  animation: nexoConfirmPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nexo-confirm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
}

.nexo-confirm-card.nexo-confirm-variant-rotate::before {
  background: linear-gradient(90deg, #6d28d9 0%, #0b5cad 52%, #10b981 100%);
}

.nexo-confirm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.nexo-confirm-icon-orb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.nexo-confirm-variant-rotate .nexo-confirm-icon-orb {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.14) 0%, rgba(16, 185, 129, 0.14) 100%);
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.28);
}

[data-theme="dark"] .nexo-confirm-variant-rotate .nexo-confirm-icon-orb {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.35);
}

.nexo-confirm-icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  border: 2px solid currentColor;
  animation: nexoPulseHalo 2.4s ease-in-out infinite;
  pointer-events: none;
}

.nexo-confirm-svg-spin {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nexo-confirm-card:hover .nexo-confirm-svg-spin {
  transform: rotate(180deg);
}

.nexo-confirm-header-text {
  flex: 1;
  min-width: 0;
}

.nexo-confirm-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d28d9;
  margin-bottom: 2px;
}

[data-theme="dark"] .nexo-confirm-kicker {
  color: #a78bfa;
}

.nexo-confirm-variant-danger .nexo-confirm-kicker {
  color: #dc2626;
}

.nexo-confirm-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.nexo-confirm-close-x {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.nexo-confirm-close-x:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.nexo-confirm-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.8px;
  line-height: 1.5;
}

.nexo-confirm-custom-slot {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nexo-rotate-interactive-box {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-elevated);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nexo-rotate-step {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nexo-rotate-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.nexo-rotate-step-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.nexo-rotate-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.nexo-rotate-pill-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .nexo-rotate-pill-amber {
  color: #fcd34d;
}

.nexo-rotate-pill-green {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .nexo-rotate-pill-green {
  color: #6ee7b7;
}

.nexo-rotate-old-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  background: var(--surface-card);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 8px 11px;
}

.nexo-rotate-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 0;
}

.nexo-rotate-sim-btn {
  border: 1px solid rgba(109, 40, 217, 0.32);
  background: rgba(109, 40, 217, 0.08);
  color: #6d28d9;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .nexo-rotate-sim-btn {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.35);
}

.nexo-rotate-sim-btn:hover {
  background: rgba(109, 40, 217, 0.16);
  transform: translateY(-1px);
}

.nexo-rotate-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 6px 10px;
  transition: all 0.2s ease;
}

.nexo-rotate-input-wrap.nexo-rotate-flash {
  animation: nexoFlashBorder 0.55s ease-out;
}

.nexo-rotate-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}

.nexo-rotate-code-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  outline: none;
}

.nexo-rotate-guarantees {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nexo-rotate-guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 11px;
}

.nexo-rotate-guarantee-item strong {
  color: var(--text-primary);
}

.nexo-rotate-g-icon {
  font-size: 15px;
  line-height: 1.2;
  flex-shrink: 0;
}

.nexo-rotate-autocopy-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 2px 0;
}

.nexo-rotate-autocopy-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6d28d9;
  cursor: pointer;
}

.nexo-confirm-btn-rotate {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(109, 40, 217, 0.5);
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28);
  transition: all 0.16s ease;
}

.nexo-confirm-btn-rotate:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.36);
  filter: brightness(1.05);
}

.nexo-confirm-btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid #b91c1c;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.24);
}

.nexo-confirm-btn-cancel {
  padding: 10px 16px;
  border-radius: 11px;
  font-weight: 700;
}

/* --- SISTEMA DE TOASTS PREMIUM (DESKTOP GLASS + MOBILE PILL) --- */
@keyframes nexoToastEnter {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nexoToastLeave {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

@keyframes nexoToastProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 382px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 15px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 42px rgba(8, 19, 38, 0.22);
  color: var(--text-primary);
  animation: nexoToastEnter 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-item.toast-leaving {
  animation: nexoToastLeave 0.2s ease-in forwards;
}

.toast-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

[data-theme="dark"] .toast-icon-badge {
  background: rgba(16, 185, 129, 0.20);
  color: #34d399;
}

.toast-item.toast-error .toast-icon-badge {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.28);
}

[data-theme="dark"] .toast-item.toast-error .toast-icon-badge {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

.toast-item.toast-warning .toast-icon-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.30);
}

.toast-item.toast-info .toast-icon-badge,
.toast-item.toast-theme-switch .toast-icon-badge {
  background: rgba(109, 40, 217, 0.14);
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.28);
}

[data-theme="dark"] .toast-item.toast-info .toast-icon-badge,
[data-theme="dark"] .toast-item.toast-theme-switch .toast-icon-badge {
  background: rgba(167, 139, 250, 0.20);
  color: #c4b5fd;
}

.toast-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #059669;
  line-height: 1.2;
}

[data-theme="dark"] .toast-title {
  color: #34d399;
}

.toast-item.toast-error .toast-title {
  color: #dc2626;
}

[data-theme="dark"] .toast-item.toast-error .toast-title {
  color: #f87171;
}

.toast-item.toast-warning .toast-title {
  color: #d97706;
}

.toast-item.toast-info .toast-title,
.toast-item.toast-theme-switch .toast-title {
  color: #6d28d9;
}

[data-theme="dark"] .toast-item.toast-info .toast-title,
[data-theme="dark"] .toast-item.toast-theme-switch .toast-title {
  color: #c4b5fd;
}

.toast-message {
  font-size: 13.4px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.toast-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.15s ease;
}

.toast-close-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.toast-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  animation: nexoToastProgress 3.5s linear forwards;
}

.toast-item.toast-theme-switch .toast-progress-bar {
  background: linear-gradient(90deg, #6d28d9 0%, #0b5cad 100%);
  animation-duration: 2.4s;
}

.toast-item.toast-error .toast-progress-bar {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

@media (max-width: 640px) {
  .toast-stack {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
    align-items: stretch;
  }

  .toast-item {
    border-radius: 18px;
    padding: 11px 12px 13px;
  }
}

.btn-Toggle-preview-mobile {
  display: none;
}

/* --- 11. RESPONSIVE MATRIZ ÚNICA DE 6 CORTES --- */
/* Laptop (1366x768) */
@media (max-width: 1400px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 326px;
    gap: 14px;
  }
  .kpi-strip-7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tenants-master-layout {
    grid-template-columns: minmax(0, 1fr) 288px;
  }
}

/* Tablet Horizontal (1080x820) y menores: Vista previa pasa a Drawer/Modal */
@media (max-width: 1240px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-preview-column {
    display: none;
  }
  .live-preview-column.drawer-open {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 92vw);
    z-index: 95;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: var(--shadow-md);
  }
  .btn-Toggle-preview-mobile {
    display: inline-flex;
  }
  .kpi-strip-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-strip-7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .exec-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tenants-master-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenants-side-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .ecosystem-health-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet Vertical (768x1024) y menores */
@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    z-index: 100;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .courier-pills-summary {
    border-left: none;
    padding-left: 0;
  }
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-hero-side {
    padding: 20px;
  }
  .form-grid-2,
  .form-grid-3,
  .exec-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpi-strip-7 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tenants-side-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecosystem-health-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .health-node {
    border-left: none;
    padding-left: 0;
  }
}

/* iPhone (390x844) y Android (360x800) */
@media (max-width: 767px) {
  .input-control,
  .select-control,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .btn,
  .pill,
  .action-circle-btn {
    min-height: 44px;
  }
  .app-topbar {
    padding: 10px 12px;
  }
  .workspace-container {
    padding: 12px 12px 28px;
  }
  .smartlink-code-display {
    width: 135px;
  }
  .desktop-table-wrap {
    display: none;
  }
  .mobile-cards-list {
    display: flex;
  }
  .kpi-strip-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpi-strip-7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-strip-7 > :last-child {
    grid-column: 1 / -1;
  }
  .tenants-side-rail,
  .ecosystem-health-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-hero-side {
    padding: 16px;
  }
  .auth-scene-box {
    margin: 8px 0;
    padding: 10px;
  }
  .auth-card {
    padding: 18px 16px;
  }
}


/* ==========================================================================
   12. LOGIN ESCÉNICO Y REGISTRO EN 3 PASOS (REF-LOGIN Y REF-REGISTRO)
   ========================================================================== */
.auth-body {
  background: radial-gradient(circle at 18% 20%, #2e1065 0%, #1e1b4b 45%, #091326 85%, #060d1a 100%);
  position: relative;
}

.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(390px, 468px);
  gap: 28px;
  padding: 24px 36px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.auth-page[data-auth-mode="register"] {
  grid-template-columns: minmax(300px, 385px) minmax(0, 1fr);
}

.auth-hero-side {
  background: transparent;
  padding: 6px 10px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.auth-brand-title span {
  color: #10b981;
}

.auth-brand-sub {
  font-size: 12px;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.auth-trust-pill {
  background: rgba(30, 27, 75, 0.78);
  border: 1px solid rgba(129, 140, 248, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.auth-hero-h1 {
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 800;
  line-height: 1.14;
  margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.auth-hero-h1 span {
  color: #22c55e;
}

.auth-pill-highlight {
  display: inline-block;
  background: rgba(16, 185, 129, 0.24);
  border: 1.5px solid rgba(34, 197, 94, 0.65);
  padding: 2px 14px;
  border-radius: 999px;
  color: #4ade80 !important;
}

.auth-hero-lead {
  font-size: 14.5px;
  color: #e2e8f0;
  margin: 0 0 16px;
  max-width: 660px;
  line-height: 1.48;
}

.auth-hero-showcase {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.28);
  border: 1px solid rgba(129, 140, 248, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.auth-feature-item strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 700;
}

.auth-feature-item span {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
}

.auth-scene-stage {
  min-width: 0;
}

.auth-workstation-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(165, 180, 252, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48), 0 0 32px rgba(99, 102, 241, 0.28);
  background: #0f172a;
}

.auth-workstation-img {
  width: 100%;
  height: auto;
  max-height: 295px;
  object-fit: cover;
  display: block;
}

.auth-workstation-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.auth-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  padding: 12px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.auth-metric-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
}

.auth-metric-pill:last-child {
  border-right: none;
}

.auth-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-metric-pill strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.auth-metric-pill span {
  font-size: 11.5px;
  color: #cbd5e1;
}

/* --- MODO REGISTRO: SIDEBAR IZQUIERDO --- */
.auth-reg-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-reg-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
}

.auth-reg-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-reg-art {
  margin: 6px 0 10px;
  text-align: center;
}

.auth-reg-art-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.auth-reg-foot-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 8px;
}

.auth-reg-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --- TARJETA DERECHA DE LOGIN / REGISTRO --- */
.auth-form-side {
  padding: 0;
}

.auth-card {
  max-width: 100%;
  border-radius: 22px;
  padding: 24px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-card-brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-card-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-card-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.auth-card-brand-title span {
  color: #10b981;
}

.auth-card-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.auth-segmented-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.auth-seg-tab {
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}

.auth-seg-tab.active {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
}

.auth-login-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.auth-login-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.auth-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-input-icon-wrap {
  position: relative;
}

.auth-input-prefix-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.65;
  pointer-events: none;
}

.auth-input-padded {
  padding-left: 36px !important;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.auth-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-forgot-link {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 6px 4px;
  min-height: 44px;
}

.auth-btn-login-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
  font-family: inherit;
}

.auth-bottom-promo-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.auth-Promo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin-bottom: 10px;
}

.auth-promo-store-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.auth-Promo-row strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
}

.auth-Promo-row p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.text-emerald-bold {
  color: #10b981;
  font-weight: 800;
}

.auth-btn-outline-green {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid #10b981;
  background: var(--surface-card);
  color: #059669;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

/* --- ESTILOS PANEL REGISTRO 3 PASOS --- */
.auth-reg-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-reg-topbar-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.auth-btn-top-login {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid #7c3aed;
  background: var(--surface-card);
  color: #6d28d9;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.auth-reg-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.auth-reg-store-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

.auth-reg-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-reg-title span {
  color: #10b981;
}

.auth-reg-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-reg-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--surface-elevated);
  border-radius: 14px;
}

.auth-reg-step {
  min-height: 48px;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
}

.auth-reg-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-strong);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-reg-step.active .auth-reg-step-num {
  background: #6d28d9;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3);
}

.auth-reg-step.completed .auth-reg-step-num {
  background: #10b981;
  color: #ffffff;
}

.auth-reg-step-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.auth-reg-step.active .auth-reg-step-pill {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.auth-reg-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  margin-bottom: 18px;
}

.auth-reg-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
}

.auth-reg-pane {
  display: none;
}

.auth-reg-pane.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-reg-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-reg-sec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(109, 40, 217, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.auth-reg-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.auth-reg-section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-person-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-person-radio {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.auth-person-radio.active {
  border-color: #6d28d9;
  background: rgba(109, 40, 217, 0.08);
  color: #6d28d9;
}

.auth-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.auth-person-radio.active .auth-radio-dot {
  background: #6d28d9;
}

.auth-doc-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-btn-consultar {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.auth-phone-split {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 6px;
}

.auth-phone-prefix {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.auth-flag-svg {
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.auth-wa-input-wrap {
  position: relative;
  min-width: 0;
}

.auth-wa-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.auth-reg-badge-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  display: inline-block;
}

.store-logo-edit-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Switch tipo iOS verde esmeralda */
input[type="checkbox"].nexo-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background-color: #cbd5e1;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

input[type="checkbox"].nexo-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

input[type="checkbox"].nexo-switch:checked {
  background-color: #10b981;
}

input[type="checkbox"].nexo-switch:checked::after {
  transform: translateX(20px);
}

.auth-wa-verify-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.auth-wa-verify-icon {
  font-size: 20px;
}

.auth-wa-verify-banner strong {
  display: block;
  color: var(--text-primary);
}

.auth-wa-verify-banner span {
  color: var(--text-secondary);
}

.auth-wa-check {
  margin-left: auto;
  color: #059669;
  font-weight: 900;
}

.auth-reg-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-reg-lock-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

.auth-btn-purple-cta {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #6d28d9, #4f46e5);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.25);
  font-family: inherit;
}

.auth-reg-benefits-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.auth-reg-benefits-card h4 {
  margin: 8px 0 10px;
  font-size: 14.5px;
  font-weight: 800;
}

.auth-reg-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-reg-benefits-list li span {
  color: #6d28d9;
  font-weight: 900;
  margin-right: 4px;
}

.auth-reg-gift-box {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 12px;
}

.auth-reg-gift-icon {
  font-size: 22px;
}

.auth-reg-gift-box strong {
  display: block;
}

/* ==========================================================================
   13. DASHBOARD DE MI TIENDA, ENVÍOS, DISEÑADOR Y CONFIGURACIÓN
   ========================================================================== */
.store-sidebar-theme .sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 10px;
}

.store-sidebar-theme .sidebar-link.active {
  background: linear-gradient(90deg, #5b46e8 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(91, 70, 232, 0.35);
}

.store-sidebar-section-label {
  padding: 8px 14px 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.store-upgrade-card {
  position: relative;
  margin: 6px 12px 10px;
  padding: 11px 13px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(49, 46, 129, 0.9) 0%, rgba(30, 27, 75, 0.96) 100%);
  border: 1px solid rgba(139, 92, 246, 0.38);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  overflow: visible;
}

.store-upgrade-crown {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.store-upgrade-rocket {
  position: absolute;
  top: -10px;
  right: 6px;
  width: 50px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.store-upgrade-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
}

.store-upgrade-card p {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.35;
  color: #cbd5e1;
}

.store-btn-upgrade-sidebar {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.store-topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.store-notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid var(--surface-card);
}

.sidebar-badge-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.sidebar-badge-new {
  margin-left: auto;
  background: #7c3aed;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.store-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}

.store-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-user-meta {
  display: none;
  line-height: 1.2;
}

@media (min-width: 1180px) {
  .store-user-meta {
    display: block;
  }
}

.store-user-meta strong {
  display: block;
  font-size: 12.5px;
}

.store-user-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.store-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 14px;
  align-items: start;
}

.store-dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-dashboard-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* HERO BANNER MORADO IDÉNTICO A REF-TIENDA-DASHBOARD.JPG EN ALTA DEFINICIÓN */
.store-hero-banner {
  background: linear-gradient(90deg, #5243d0 0%, #5b38d4 50%, #652bd7 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 18px 168px 18px 158px;
  min-height: 146px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 26px rgba(82, 67, 208, 0.26);
  position: relative;
  overflow: hidden;
}

.store-hero-boxes-hd {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.store-hero-phone-hd {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.store-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.store-hero-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-hero-title-row h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.store-hero-active-pill {
  background: #10b981;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}

.store-hero-copy p {
  margin: 4px 0 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.store-hero-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.store-hero-url-input-wrap {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  padding: 4px 4px 4px 10px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.store-hero-link-svg {
  flex-shrink: 0;
}

.store-hero-url-input {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-weight: 700;
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
}

.store-hero-btn-inside-copy {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: none;
  background: #ede9fe;
  color: #4c1d95;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-family: inherit;
}

.store-hero-btn-solid-white {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #1e1b4b;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-family: inherit;
}

.store-hero-btn-qr-square {
  width: 42px;
  min-height: 42px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #1e1b4b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.store-kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.store-kpi-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.kpi-tint-blue {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border-color: #dbeafe;
}
.kpi-tint-green {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  border-color: #d1fae5;
}
.kpi-tint-purple {
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
  border-color: #ede9fe;
}
.kpi-tint-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fef3c7;
}

[data-theme="dark"] .kpi-tint-blue,
[data-theme="dark"] .kpi-tint-green,
[data-theme="dark"] .kpi-tint-purple,
[data-theme="dark"] .kpi-tint-amber {
  background: var(--surface-card);
  border-color: var(--border-subtle);
}

.store-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-purple { background: #ede9fe; color: #6d28d9; }
.kpi-icon-amber { background: #fef3c7; color: #d97706; }
.kpi-icon-blue { background: #dbeafe; color: #2563eb; }
.kpi-icon-indigo { background: #e0e7ff; color: #4f46e5; }
.kpi-icon-emerald { background: #d1fae5; color: #059669; }

.store-kpi-body {
  min-width: 0;
  flex: 1;
}

.store-kpi-val-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.store-kpi-badge-green {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.store-kpi-body small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.store-kpi-courier-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  margin-left: -48px;
  width: calc(100% + 48px);
}

.store-kpi-courier-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-kpi-courier-inline .store-kpi-courier-chip {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
}

.store-kpi-courier-chip {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  line-height: 1.1;
  min-width: 0;
  text-align: center;
}

.store-kpi-courier-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 800;
  font-size: 11px;
}

.store-kpi-courier-chip small {
  font-size: 9.5px;
  line-height: 1.1;
  color: var(--text-muted);
  white-space: nowrap;
}

.store-charts-grid-3 {
  display: grid;
  grid-template-columns: 1.22fr 1fr 1fr;
  gap: 12px;
}

.store-chart-card {
  margin-bottom: 0;
  padding: 14px;
}

.store-card-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.store-card-title span {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-muted);
}

.store-bars-with-axis {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  height: 120px;
}

.store-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  padding-bottom: 28px;
  text-align: right;
  line-height: 1;
}

.store-bars-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 120px;
}

.store-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.store-bar-track {
  flex: 1;
  width: 20px;
  background: var(--surface-elevated);
  border-radius: 5px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.store-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #7c3aed, #5b46e8);
  border-radius: 5px;
}

.store-bar-fill.bar-today {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.store-bar-day {
  font-size: 10.5px;
  color: var(--text-muted);
}

.store-bar-num {
  font-size: 11px;
}

.store-donut-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-donut-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.store-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.store-donut-center strong {
  font-size: 17px;
  font-weight: 800;
}

.store-donut-center small {
  font-size: 9.5px;
  color: var(--text-muted);
}

.store-donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  flex: 1;
  min-width: 0;
}

.store-donut-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* TABLA COMPACTA SIN RECORTE HORIZONTAL */
.store-compact-table th {
  padding: 6px 5px;
  font-size: 11px;
}

.store-compact-table td {
  padding: 6px 5px;
  font-size: 11.5px;
}

@media (min-width: 1024px) {
  .store-compact-table .action-circle-btn {
    min-width: 26px;
    min-height: 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 0;
  }
  .customers-table .action-circle-btn {
    min-width: 22px;
    min-height: 22px;
    width: 22px;
    height: 22px;
  }
  .store-compact-table .row-actions {
    gap: 2px;
  }
}

.store-footer-action-btn {
  gap: 6px;
  font-size: 12.5px;
  min-height: 38px;
  padding: 0 12px;
}

.store-dash-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.store-link-btn {
  background: none;
  border: none;
  color: #4f46e5;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  min-height: 38px;
  padding: 0 6px;
}

.store-rail-card {
  margin-bottom: 0;
  padding: 14px;
}

.store-plan-usage-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.store-plan-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
}

.store-plan-meta-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.store-btn-indigo-full {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  background: linear-gradient(90deg, #4f46e5 0%, #6d28d9 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

.store-rail-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  min-height: 38px;
}

.store-rail-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.store-rail-qr-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.store-rail-couriers {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.store-courier-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface-elevated);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

.shipments-view-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reg-code-pill {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.bulk-action-bar {
  margin-top: 12px;
  background-color: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- DISEÑADOR DE MI FORMULARIO --- */
.designer-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 16px;
  align-items: start;
}

.designer-group-box {
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.designer-group-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.designer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.designer-logo-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
  flex-shrink: 0;
}

.designer-presets-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.designer-palette-chip {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.designer-palette-chip span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.designer-colors-grid,
.designer-templates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.designer-tpl-card {
  min-height: 64px;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.designer-tpl-card.active {
  border-color: #6d28d9;
  background: rgba(109, 40, 217, 0.08);
}

.designer-tpl-card strong {
  display: block;
  font-size: 12.5px;
}

.designer-tpl-card span {
  font-size: 11px;
  color: var(--text-muted);
}

.designer-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.designer-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.designer-stage-wrap {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: center;
}

.sim-live-card {
  --sim-primary: #c81e68;
  --sim-secondary: #7e1248;
  --sim-btn: #c81e68;
  --sim-radius: 12px;
  width: 100%;
  background: var(--surface-card);
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.designer-gradient-preview-bar {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.designer-stage-wrap[data-device="mobile"] .sim-live-card {
  max-width: 320px;
  grid-template-columns: minmax(0, 1fr);
}

.designer-stage-wrap[data-device="tablet"] .sim-live-card {
  max-width: 440px;
  grid-template-columns: minmax(0, 1fr);
}

.sim-brand-col {
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.24), transparent 55%),
              linear-gradient(165deg, var(--sim-primary), var(--sim-secondary));
  color: #ffffff;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.sim-tpl-empresarial-elegante .sim-brand-col {
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.15), transparent 55%),
              linear-gradient(165deg, #0b1120 0%, #111827 52%, var(--sim-secondary) 100%);
}

.sim-tpl-minimalista .sim-brand-col {
  background: linear-gradient(165deg, var(--sim-primary) 0%, #0f172a 100%);
}

.sim-logo-pedestal {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 6px;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.32));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.sim-logo-box {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 13px;
  background: #ffffff;
  color: var(--sim-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  overflow: hidden;
  padding: 4px;
}

.sim-verified-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px auto 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.sim-route-telemetry {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: left;
}

.sim-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 4px;
}

.sim-route-live-dot {
  color: #a7f3d0;
  font-size: 9px;
}

.sim-route-svg {
  width: 100%;
  height: 22px;
  display: block;
}

.sim-route-flow-line {
  animation: simFlowDash 1.4s linear infinite;
}

@keyframes simFlowDash {
  to { stroke-dashoffset: -18; }
}

.sim-brand-col strong {
  display: block;
  font-size: 14px;
}

.sim-brand-col span {
  font-size: 11px;
  opacity: 0.92;
}

.sim-brand-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  text-align: left;
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sim-form-col {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-form-head strong {
  display: block;
  font-size: 14px;
}

.sim-form-head small {
  color: var(--text-secondary);
  font-size: 11.5px;
}

.sim-field {
  margin-bottom: 8px;
}

.sim-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.sim-input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  font-size: 12px;
}

.sim-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.sim-pill.active {
  background: var(--sim-primary);
  border-color: var(--sim-primary);
  color: #ffffff;
}

.sim-cta-btn {
  width: 100%;
  min-height: 40px;
  border-radius: var(--sim-radius);
  border: none;
  background: var(--sim-btn);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  margin-top: 4px;
}

/* --- CONFIGURACIÓN DE MI TIENDA + LOGO UPLOAD --- */
.store-settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-logo-upload-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.store-logo-preview-square {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.store-logo-upload-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.store-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.store-toggle-item strong {
  display: block;
  font-size: 13px;
}

.store-toggle-item span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.store-couriers-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.store-courier-box-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.store-settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* ==========================================================================
   MIS CLIENTES RECURRENTES (#panelStoreCustomers) — FIDELIDAD 1:1
   ========================================================================== */
.store-btn-purple-top {
  background: linear-gradient(90deg, #5b46e8 0%, #7c3aed 100%);
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.kpi-tint-indigo {
  background: linear-gradient(135deg, var(--surface-card) 55%, rgba(99, 102, 241, 0.08) 100%);
}

.kpi-icon-indigo {
  background: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
}

.kpi-trend-up {
  color: #16a34a;
  font-weight: 800;
}

.cust-fav-courier-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

[data-theme="dark"] .cust-fav-courier-pill {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
}

.store-customers-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 242px;
  gap: 10px;
  align-items: start;
}

.customers-directory-card {
  padding: 14px;
}

.customers-directory-card .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.cust-dir-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(109, 40, 217, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cust-fidelizados-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

[data-theme="dark"] .cust-fidelizados-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.customers-filter-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.8fr) repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.customers-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
}

.customers-search-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
}

.customers-select-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3px 10px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  min-width: 0;
}

.customers-select-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.1;
}

.customers-select-box select {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  margin-top: 1px;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.customers-segments-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.customers-segment-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.cust-seg-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.cust-seg-pill:hover {
  border-color: #6d28d9;
  color: var(--text-primary);
}

.cust-seg-pill.active {
  background: linear-gradient(90deg, #5b46e8 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.24);
}

.cust-seg-pill.active svg {
  stroke: #ffffff !important;
}

.customers-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.customers-sort-wrap select {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.customers-table th {
  font-size: 10.5px;
  font-weight: 700;
  padding: 7px 3px;
  white-space: nowrap;
}

.customers-table td {
  height: 54px;
  padding: 5px 3px;
  font-size: 11px;
  vertical-align: middle;
}

.cust-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 114px;
  max-width: 136px;
}

.cust-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.cust-name-text {
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.22;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: normal;
}

.cust-doc-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cust-doc-stack strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.cust-doc-stack span {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.cust-phone-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.wa-inline-webp {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.25));
}

.wa-btn-webp {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.cust-courier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.cust-dest-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.cust-dest-line1 {
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-dest-line2 {
  font-size: 10px;
  line-height: 1.18;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-orders-cell strong {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.cust-orders-cell span {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.cust-date-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 11px;
}

.cust-date-stack strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.cust-date-stack span {
  color: var(--text-muted);
  font-size: 10px;
}

/* Botones de Acción con Vida y Color Semántico */
.cust-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.action-circle-btn.cust-act-history {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #6d28d9;
  transition: all 0.16s ease;
}

.action-circle-btn.cust-act-history:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  transform: translateY(-1px);
}

.action-circle-btn.cust-act-edit {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #2563eb;
  transition: all 0.16s ease;
}

.action-circle-btn.cust-act-edit:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

.action-circle-btn.cust-act-wa {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 0;
  transition: all 0.16s ease;
}

.action-circle-btn.cust-act-wa:hover {
  background: #bbf7d0;
  border-color: #22c55e;
  transform: translateY(-1px) scale(1.05);
}

.action-circle-btn.cust-act-copy {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #b45309;
  transition: all 0.16s ease;
}

.action-circle-btn.cust-act-copy:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="dark"] .action-circle-btn.cust-act-history {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(167, 139, 250, 0.4);
  color: #ddd6fe;
}

[data-theme="dark"] .action-circle-btn.cust-act-edit {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
}

[data-theme="dark"] .action-circle-btn.cust-act-wa {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.45);
}

[data-theme="dark"] .action-circle-btn.cust-act-copy {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

/* Modal Flotante Centrado (.nexo-modal-backdrop) */
.nexo-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1350;
  background: rgba(8, 20, 38, 0.62);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nexo-modal-backdrop.active {
  display: flex;
}

.nexo-modal-card {
  width: 100%;
  max-width: 490px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(8, 20, 38, 0.42);
}

.nexo-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   MODAL: CENTRO DE AYUDA Y GUÍA RÁPIDA (FIDELIDAD 1:1 CON REFERENCIA)
   ========================================================================== */
.nexo-modal-card.help-center-modal-card {
  max-width: 608px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 28px 72px rgba(8, 15, 38, 0.5);
  background: var(--surface-card);
}

.help-center-hero-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0d1636 0%, #192459 48%, #4c1d95 82%, #7c3aed 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.help-hero-wave-svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 240px;
  height: 76px;
  pointer-events: none;
}

.help-hero-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.help-hero-book-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-hero-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.help-hero-titles {
  min-width: 0;
}

.help-hero-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.help-hero-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.35;
}

.help-hero-close-btn {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.help-hero-close-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}

.help-center-body {
  padding: 18px 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--surface-card);
}

.help-guide-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  transition: all 0.18s ease;
}

.help-guide-item.js-help-jump {
  cursor: pointer;
}

.help-guide-item.js-help-jump:hover {
  border-color: #c4b5fd;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(91, 70, 232, 0.09);
  transform: translateY(-1px);
}

[data-theme="dark"] .help-guide-item.js-help-jump:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(167, 139, 250, 0.45);
}

.help-guide-item.is-support {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
}

[data-theme="dark"] .help-guide-item.is-support {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.28) 0%, rgba(4, 120, 87, 0.18) 100%);
  border-color: rgba(52, 211, 153, 0.35);
}

.help-guide-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-guide-icon.icon-emerald {
  background: #e6f9ef;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.help-guide-icon.icon-violet {
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #7c3aed;
}

.help-guide-icon.icon-blue {
  background: #e0ecff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.help-guide-icon.icon-support-green {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #16a34a;
}

[data-theme="dark"] .help-guide-icon.icon-emerald,
[data-theme="dark"] .help-guide-icon.icon-support-green {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

[data-theme="dark"] .help-guide-icon.icon-violet {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(196, 181, 253, 0.35);
  color: #c4b5fd;
}

[data-theme="dark"] .help-guide-icon.icon-blue {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(147, 197, 253, 0.35);
  color: #93c5fd;
}

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

.help-guide-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.help-guide-head.is-space-between {
  justify-content: space-between;
  flex-wrap: wrap;
}

.help-step-num {
  width: 22px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-guide-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.help-guide-desc {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.44;
  color: var(--text-secondary);
}

.help-inline-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.help-inline-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.help-guide-chevron {
  color: #6d28d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.help-guide-item.js-help-jump:hover .help-guide-chevron {
  transform: translateX(3px);
}

.help-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

[data-theme="dark"] .help-official-badge {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.help-center-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.help-wa-cta-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 11px;
  background: linear-gradient(90deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
  transition: all 0.16s ease;
}

.help-wa-cta-btn:hover {
  background: linear-gradient(90deg, #047857 0%, #065f46 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.help-understood-btn {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.help-understood-btn:hover {
  background: var(--surface-elevated);
  border-color: #94a3b8;
}

.cust-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cust-status-pill.status-recurrente {
  background: rgba(16, 185, 129, 0.14);
  color: #15803d;
}

.cust-status-pill.status-activo {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.cust-status-pill.status-vip {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

[data-theme="dark"] .cust-status-pill.status-recurrente {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

[data-theme="dark"] .cust-status-pill.status-activo {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

[data-theme="dark"] .cust-status-pill.status-vip {
  background: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}

.customers-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

.customers-page-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cust-page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cust-page-btn.active {
  background: #6d28d9;
  color: #ffffff;
  border-color: #6d28d9;
}

.cust-page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}

.customers-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customers-page-size select {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
}

/* COLUMNA DERECHA: INSIGHTS DE CLIENTES */
.customers-insights-wrapper {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customers-insights-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customers-insights-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.customers-insight-subcard {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.insight-subcard-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.insight-subcard-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-subcard-head strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.insight-subcard-head small {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.insight-top-buyers-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-top-buyers-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.insight-buyer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.insight-buyer-left strong {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-orders-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.insight-link-action {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

[data-theme="dark"] .insight-link-action {
  color: #c4b5fd;
}

.customers-insight-alert-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 12px;
}

[data-theme="dark"] .customers-insight-alert-card {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.35) 0%, rgba(159, 18, 57, 0.22) 100%);
  border-color: rgba(244, 63, 94, 0.35);
}

[data-theme="dark"] .customers-insight-alert-card strong {
  color: #fecdd3 !important;
}

.insight-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-alert-count {
  font-size: 18px;
  font-weight: 800;
  color: #9f1239;
  line-height: 1.15;
  margin-top: 2px;
}

[data-theme="dark"] .insight-alert-count {
  color: #fda4af;
}

.insight-alert-desc {
  margin: 4px 0 10px;
  font-size: 11.5px;
  color: #881337;
  line-height: 1.35;
}

[data-theme="dark"] .insight-alert-desc {
  color: #fecdd3;
}

.insight-alert-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #fecdd3;
  background: #ffffff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

[data-theme="dark"] .insight-alert-btn {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(244, 63, 94, 0.4);
  color: #c4b5fd;
}

/* ==========================================================================
   ENVÍOS Y REGISTROS V2 (#panelStoreShipments) — FIDELIDAD 1:1
   ========================================================================== */
.ship-kpi-card {
  position: relative;
  overflow: hidden;
  align-items: center;
  min-height: 82px;
  padding: 14px 16px;
}

.ship-kpi-card .store-kpi-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.ship-kpi-card .kpi-value {
  font-size: 24px;
  line-height: 1.05;
}

.ship-kpi-amber {
  background: linear-gradient(135deg, var(--surface-card) 55%, rgba(245, 158, 11, 0.09) 100%);
}

.ship-kpi-emerald {
  background: linear-gradient(135deg, var(--surface-card) 55%, rgba(16, 185, 129, 0.09) 100%);
}

.ship-kpi-blue {
  background: linear-gradient(135deg, var(--surface-card) 55%, rgba(59, 130, 246, 0.09) 100%);
}

.ship-kpi-violet {
  background: linear-gradient(135deg, var(--surface-card) 55%, rgba(139, 92, 246, 0.09) 100%);
}

.ship-kpi-icon-purple {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

.ship-kpi-icon-emerald {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.ship-kpi-icon-blue {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

.ship-kpi-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 46px;
  pointer-events: none;
}

.shipments-v2-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ship-v2-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ship-v2-tab.active {
  background: linear-gradient(90deg, #d97706 0%, #ea580c 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.28);
}

.ship-v2-tab.active svg {
  stroke: #ffffff !important;
}

.shipments-v2-filter-bar {
  display: grid;
  grid-template-columns: 170px minmax(210px, 1.8fr) repeat(3, minmax(105px, 0.9fr)) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.ship-date-select-box {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
}

.ship-date-select-box select {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  outline: none;
  cursor: pointer;
}

.ship-more-filters-btn {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.shipments-table-v2 th {
  font-size: 10.5px;
  padding: 7px 3px;
  white-space: nowrap;
}

.shipments-table-v2 td {
  padding: 7px 3px;
  font-size: 11px;
  vertical-align: middle;
}

.ship-code-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(109, 40, 217, 0.1);
  color: #5b21b6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
}

[data-theme="dark"] .ship-code-pill {
  background: rgba(139, 92, 246, 0.22);
  color: #ddd6fe;
}

.ship-badge-nuevo {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #15803d;
  font-size: 9.5px;
  font-weight: 800;
}

[data-theme="dark"] .ship-badge-nuevo {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.ship-buyer-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 118px;
  max-width: 138px;
}

.ship-buyer-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ship-buyer-name {
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-primary);
  word-break: normal;
  overflow-wrap: normal;
}

.ship-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.ship-mode-pill.mode-home {
  background: rgba(16, 185, 129, 0.14);
  color: #15803d;
}

.ship-mode-pill.mode-agency {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

[data-theme="dark"] .ship-mode-pill.mode-home {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

[data-theme="dark"] .ship-mode-pill.mode-agency {
  background: rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
}

.ship-courier-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.ship-dot-shalom {
  background: #ef4444;
}

.ship-dot-olva {
  background: #f59e0b;
}

.ship-dot-marvisur {
  background: #1d4ed8;
}

.ship-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.ship-status-pill.pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.ship-status-pill.attended {
  background: rgba(16, 185, 129, 0.16);
  color: #15803d;
}

[data-theme="dark"] .ship-status-pill.pending {
  background: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}

[data-theme="dark"] .ship-status-pill.attended {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.ship-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ship-btn-rotulo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 27px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ship-btn-rotulo:hover {
  border-color: #6d28d9;
}

.ship-btn-atendido {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 27px;
  padding: 0 8px;
  border-radius: 7px;
  border: none;
  background: #16a34a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ship-btn-atendido:hover {
  background: #15803d;
}

.ship-btn-atendido.is-done {
  background: rgba(16, 185, 129, 0.16);
  color: #15803d;
}

[data-theme="dark"] .ship-btn-atendido.is-done {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.shipments-v2-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.ship-footer-left,
.ship-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ship-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  margin-right: 4px;
}

.ship-footer-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
}

.ship-page-size-select {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
}

/* --- RESPONSIVE STORE & AUTH OVERRIDES --- */
@media (max-width: 1240px) {
  .store-dashboard-layout,
  .store-customers-layout-grid,
  .designer-split-grid,
  .store-settings-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .customers-filter-bar,
  .shipments-v2-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-charts-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-hero-showcase,
  .auth-reg-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  .auth-page,
  .auth-page[data-auth-mode="register"] {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
    gap: 14px;
  }
  .auth-form-side {
    order: -1;
  }
  .auth-hero-showcase,
  .auth-metrics-bar,
  .auth-reg-art {
    display: none;
  }
  .store-hero-banner {
    background: linear-gradient(135deg, #5b46e8 0%, #6d28d9 55%, #7c3aed 100%);
    padding: 16px 18px;
    min-height: auto;
  }
  .store-hero-boxes-hd,
  .store-hero-phone-hd {
    display: none;
  }
  .store-hero-url-bar {
    flex-wrap: wrap;
  }
  .store-hero-url-input-wrap {
    min-width: 200px;
  }
}

@media (max-width: 767px) {
  .store-kpi-grid-4,
  .customers-filter-bar,
  .shipments-v2-filter-bar,
  .store-couriers-check-grid,
  .designer-colors-grid,
  .designer-templates-grid,
  .auth-person-type-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .customers-table {
    display: none;
  }
  .customers-directory-card .section-header,
  .customers-directory-card .section-header > div {
    flex-wrap: wrap !important;
  }
  .cust-page-btn,
  .ship-footer-btn,
  .ship-v2-tab,
  .cust-seg-pill {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ==========================================================================
   MÓDULO PREPARAR ENVÍOS Y RÓTULOS (#panelStoreLabels — /inicio?tab=rotulos)
   ========================================================================== */

.rotulos-header-bar.rotulos-header-v19 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rotulos-header-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.rotulos-header-pill-badge strong {
  color: var(--text-primary);
  font-weight: 800;
}

.rotulos-stepper {
  list-style: none;
  margin: 0;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  flex-shrink: 0;
  min-width: 0;
}

.rotulos-step-arrow {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 0 2px;
}

.rotulos-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.rotulos-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--surface-elevated);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rotulos-step-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.rotulos-step-copy strong {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.rotulos-step-pill.is-active {
  background-color: #5b21b6;
  background-image: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px -6px rgba(91, 33, 182, 0.5);
}

.rotulos-step-pill.is-active .rotulos-step-num {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #4c1d95;
}

.rotulos-step-pill.is-active .rotulos-step-copy strong {
  color: #ffffff;
}

/* Grilla de 2 columnas (32% izquierda / 68% derecha) */
.rotulos-layout.rotulos-two-col {
  display: grid;
  grid-template-columns: minmax(318px, 32%) minmax(0, 68%);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.rotulos-left-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  min-width: 0;
}

.rotulos-prep-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.rotulos-prep-tab {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 0;
  background-color: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.rotulos-prep-tab svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.rotulos-prep-tab.is-active {
  background-color: #5b21b6;
  background-image: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px -4px rgba(91, 33, 182, 0.45);
}

.rotulos-filter-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.rotulos-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.rotulos-search-box {
  position: relative;
  min-width: 0;
}

.rotulos-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.rotulos-search-input {
  padding-left: 31px !important;
  height: 34px;
  min-height: 34px;
  font-size: 12px;
}

.rotulos-date-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.rk-preset-chip {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.rk-preset-chip svg {
  width: 12px;
  height: 12px;
}

.rk-preset-chip:hover {
  border-color: #7c3aed;
  color: var(--text-primary);
}

.rk-preset-chip.is-active {
  border-color: #6d28d9;
  background: rgba(109, 40, 217, 0.12);
  color: #5b21b6;
}

[data-theme="dark"] .rk-preset-chip.is-active {
  border-color: #a78bfa;
  background: rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
}

.rk-filter-panel.rotulos-date-range-drawer {
  display: none;
  padding-top: 4px;
}

.rk-filter-panel.rotulos-date-range-drawer.is-open {
  display: block;
}

.rotulos-compact-selects-v2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rotulos-selects-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.rotulos-mini-select {
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 11.5px;
  min-width: 0;
}

.rotulos-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 2px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.rotulos-list-head-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rotulos-master-chk {
  width: 15px;
  height: 15px;
  accent-color: #6d28d9;
  cursor: pointer;
}

.rotulos-master-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-primary);
  font-size: 12.5px;
  cursor: pointer;
}

.btn-xs {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 6px;
}

.rotulos-link-btn {
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

[data-theme="dark"] .rotulos-link-btn {
  color: #c4b5fd;
}

.rotulos-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 2px;
  min-width: 0;
}

.rotulo-order-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1.15fr) minmax(0, 0.85fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
  min-width: 0;
}

.rotulo-order-card:hover {
  border-color: #7c3aed;
}

.rotulo-order-card.is-selected {
  border-color: #7c3aed;
  background-color: rgba(124, 58, 237, 0.08);
}

[data-theme="dark"] .rotulo-order-card.is-selected {
  border-color: #a78bfa;
  background-color: rgba(124, 58, 237, 0.22);
}

.rotulo-order-card.fila-oculta {
  display: none !important;
}

.rotulo-order-check-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotulo-order-check-col input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #6d28d9;
}

.rotulo-item-col-buyer,
.rotulo-item-col-dest,
.rotulo-item-col-right {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rotulo-item-col-right {
  align-items: flex-end;
  text-align: right;
}

.rotulos-check-code {
  font-size: 11.5px;
  font-weight: 800;
  color: #6d28d9;
}

[data-theme="dark"] .rotulos-check-code {
  color: #c4b5fd;
}

.rotulos-check-buyer {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rotulos-check-city {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rotulos-check-city svg {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rotulo-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
}

.rotulo-mini-badge svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.rotulo-mini-badge.is-shalom {
  background-color: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.rotulo-mini-badge.is-olva {
  background-color: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.rotulo-mini-badge.is-marvisur {
  background-color: rgba(16, 185, 129, 0.15);
  color: #047857;
}

[data-theme="dark"] .rotulo-mini-badge.is-shalom {
  background-color: rgba(239, 68, 68, 0.24);
  color: #fca5a5;
}

[data-theme="dark"] .rotulo-mini-badge.is-olva {
  background-color: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}

[data-theme="dark"] .rotulo-mini-badge.is-marvisur {
  background-color: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.rotulo-prep-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.rotulo-prep-badge.is-ready {
  background: rgba(16, 185, 129, 0.14);
  color: #15803d;
}

.rotulo-prep-badge.is-printed {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.rotulo-prep-badge.is-warn {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

[data-theme="dark"] .rotulo-prep-badge.is-ready {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

[data-theme="dark"] .rotulo-prep-badge.is-printed {
  background: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}

.rotulo-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.rotulo-mode-pill.is-agency {
  background: rgba(109, 40, 217, 0.12);
  color: #5b21b6;
}

.rotulo-mode-pill.is-home {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

[data-theme="dark"] .rotulo-mode-pill.is-agency {
  background: rgba(139, 92, 246, 0.24);
  color: #ddd6fe;
}

[data-theme="dark"] .rotulo-mode-pill.is-home {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.rotulo-bultos-pill {
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.rotulos-empty-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 22px 12px;
  color: var(--text-secondary);
}

.rotulos-selection-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.rotulos-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background-color: #5b21b6;
  background-image: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
  color: #ffffff;
  font-size: 11.5px;
  flex-wrap: wrap;
}

.rotulos-selection-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.rotulos-selection-summary svg {
  width: 15px;
  height: 15px;
  color: #fde68a;
  flex-shrink: 0;
}

.rotulos-selection-metrics {
  color: #f5f3ff;
  font-weight: 700;
}

.rotulos-footer-actions.is-pdf-dock {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 8px;
  align-items: stretch;
}

.rotulos-btn-preview-doc {
  justify-content: center;
  font-weight: 700;
  min-height: 38px;
}

.rotulos-pdf-split-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.rotulos-btn-download-pdf {
  flex: 1 1 auto;
  min-height: 38px;
  justify-content: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border: 0;
  background-color: #c2410c;
  background-image: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 6px 14px -5px rgba(234, 88, 12, 0.55);
  cursor: pointer;
}

.rotulos-btn-download-pdf:hover {
  color: #ffffff;
  filter: brightness(1.04);
}

.rotulos-btn-pdf-caret {
  width: 34px;
  min-height: 38px;
  padding: 0;
  justify-content: center;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  background-color: #b45309;
  background-image: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  flex-shrink: 0;
  cursor: pointer;
}

.rotulos-pdf-dropdown {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  width: 240px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface-card);
  box-shadow: 0 12px 26px -8px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}

.rotulos-pdf-dropdown[hidden] {
  display: none;
}

.rotulos-pdf-menu-item {
  padding: 8px 10px;
  border-radius: 7px;
  border: 0;
  background-color: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.rotulos-pdf-menu-item:hover {
  background-color: var(--surface-elevated);
}

.rotulos-pdf-menu-item.is-danger {
  color: #dc2626;
}

.rotulos-pdf-menu-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Columna Derecha Principal */
.rotulos-stage-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.rotulos-preview-master-card {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rotulos-master-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rotulos-master-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rotulos-master-title svg {
  width: 17px;
  height: 17px;
  color: #6d28d9;
}

.rotulos-master-title h2,
.rotulos-master-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.rotulos-stage-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rotulos-sheet-pager {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-elevated);
}

.rotulos-sheet-page-pill {
  min-width: 42px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 4px;
}

.rotulos-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
}

.rotulos-view-btn {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.rotulos-view-btn.is-active {
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.rotulos-inline-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: 9px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.rotulos-ctrl-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.rotulos-ctrl-item label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.rotulos-ctrl-select {
  min-height: 28px;
  height: 28px;
  max-width: 152px;
  padding: 0 22px 0 7px;
  font-size: 11px;
  font-weight: 700;
}

.rotulos-perpage-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rotulos-pp-icon-btn {
  width: 29px;
  height: 27px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background-color: var(--surface-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rotulos-pp-icon-btn svg {
  width: 18px;
  height: 14px;
}

.rotulos-pp-icon-btn.is-active {
  border-color: #6d28d9;
  background-color: rgba(109, 40, 217, 0.14);
  color: #5b21b6;
}

[data-theme="dark"] .rotulos-pp-icon-btn.is-active {
  border-color: #a78bfa;
  background-color: rgba(139, 92, 246, 0.28);
  color: #ddd6fe;
}

.rotulos-orient-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rotulos-orient-btn {
  min-height: 27px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background-color: var(--surface-card);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.rotulos-orient-shape {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.rotulos-orient-shape.is-h {
  width: 12px;
  height: 8px;
}

.rotulos-orient-shape.is-v {
  width: 8px;
  height: 12px;
}

.rotulos-orient-btn.is-active {
  background-color: #5b21b6;
  background-image: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border-color: #5b21b6;
  color: #ffffff;
}

/* Contenedor de previsualización del rótulo */
#rotulosPreview.a4-sheet-preview {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 7px;
  min-height: 0;
}

.rotulo-card-unit.rotulo-unselected,
.rotulo-card-unit.rotulo-page-hidden,
tr.rotulo-unselected {
  display: none !important;
}

/* Anatomía del Rótulo Industrial (Papel blanco físico #FFFFFF siempre) */
.rotulo-box {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.15);
}

.rotulo-top-banner {
  position: relative;
  background-color: #ffffff;
  color: #0f172a;
  border-bottom: 2.5px solid #ea580c;
  overflow: hidden;
}

.rotulo-top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 40px 7px 12px;
}

.rotulo-corner-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, transparent 50%, #f97316 50%, #ea580c 100%);
  pointer-events: none;
}

.rotulo-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rotulo-logo-placeholder {
  width: 58px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.rotulo-logo-placeholder span {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
}

.rotulo-company-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.rotulo-company-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.rotulo-company-text span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.rotulo-brand-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1.5px solid #cbd5e1;
  flex-shrink: 0;
}

.rotulo-rk-cube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rotulo-rk-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.rotulo-rk-brand-copy strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.rotulo-rk-brand-copy strong span {
  color: #10b981;
}

.rotulo-rk-brand-copy strong sup {
  font-size: 9px;
  font-weight: 700;
}

.rotulo-rk-brand-copy small {
  font-size: 8.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.15;
}

/* Banda central: Destino Final + Preparado para Despacho */
.rotulo-core-band {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: 8px;
  padding: 7px 12px;
  align-items: stretch;
  border-bottom: 1.5px solid #cbd5e1;
}

.rotulo-dest-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  border-radius: 9px;
  border: 1.5px solid #94a3b8;
  overflow: hidden;
  background-color: #f8fafc;
}

.rotulo-dest-pin-col {
  background-color: #1e1b4b;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  text-align: center;
}

.rotulo-dest-pin-col svg {
  width: 20px;
  height: 20px;
  color: #f8fafc;
}

.rotulo-dest-pin-col span {
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.rotulo-dest-main-col {
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.rotulo-dest-city {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.02;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rotulo-dest-agency-pill {
  background-color: #c2410c;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.22;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rotulo-dispatch-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.rotulo-dispatch-head {
  background-color: #1e1b4b;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rotulo-dispatch-head svg {
  width: 13px;
  height: 13px;
  color: #f97316;
  flex-shrink: 0;
}

.rotulo-dispatch-table {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.rotulo-dispatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 9px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 10.5px;
}

.rotulo-dispatch-row:last-child {
  border-bottom: 0;
}

.rotulo-dispatch-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  font-weight: 800;
}

.rotulo-dispatch-lbl svg {
  width: 12px;
  height: 12px;
  color: #475569;
  flex-shrink: 0;
}

.rotulo-dispatch-val {
  padding: 1px 8px;
  border-radius: 5px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
}

/* Destinatario / Nombre Completo */
.rotulo-recipient-section {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-bottom: 1.5px solid #cbd5e1;
  background-color: #ffffff;
}

.rotulo-recipient-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background-color: #ea580c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rotulo-recipient-icon svg {
  width: 17px;
  height: 17px;
}

.rotulo-recipient-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.12;
}

.rotulo-recipient-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.03em;
}

.rotulo-recipient-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Grilla 2x2: DNI/RUC, Celular, Fecha de preparación, Preparado por */
.rotulo-meta-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1.5px solid #cbd5e1;
  background-color: #ffffff;
}

.rotulo-meta-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  min-width: 0;
}

.rotulo-meta-cell:nth-child(2n) {
  border-right: 0;
}

.rotulo-meta-cell:nth-last-child(-n+2) {
  border-bottom: 0;
}

.rotulo-meta-ico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rotulo-meta-ico svg {
  width: 13px;
  height: 13px;
}

.rotulo-meta-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}

.rotulo-meta-copy span {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
}

.rotulo-meta-copy strong {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  overflow-wrap: anywhere;
}

/* Pie de Remitente + Sellos Logísticos */
.rotulo-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background-color: #f8fafc;
  flex-wrap: wrap;
}

.rotulo-remite-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 260px;
}

.rotulo-remite-pill {
  background-color: #1e1b4b;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 9.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.rotulo-remite-pill svg {
  width: 12px;
  height: 12px;
  color: #f97316;
}

.rotulo-remite-copy {
  display: flex;
  flex-direction: column;
  font-size: 9.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
  min-width: 0;
}

.rotulo-remite-copy strong {
  color: #0f172a;
  font-weight: 900;
}

.rotulo-handling-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rotulo-care-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid #ea580c;
  background-color: #fff7ed;
  color: #9a3412;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.05;
}

.rotulo-care-badge svg {
  width: 13px;
  height: 13px;
  color: #ea580c;
  flex-shrink: 0;
}

.rotulo-care-up {
  font-size: 12px;
  font-weight: 900;
  color: #ea580c;
}

/* Modos de 2 y 4 rótulos por hoja en vista previa */
#rotulosPreview[data-per-page="1"] .rotulos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

#rotulosPreview[data-per-page="2"] .rotulos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

#rotulosPreview[data-per-page="4"] .rotulos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#rotulosPreview[data-per-page="4"] .rotulo-company-text strong {
  font-size: 12px;
}

#rotulosPreview[data-per-page="4"] .rotulo-dest-city {
  font-size: 16px;
}

#rotulosPreview[data-per-page="4"] .rotulo-recipient-name {
  font-size: 13.5px;
}

#rotulosPreview[data-per-page="4"] .rotulo-brand-right,
#rotulosPreview[data-per-page="4"] .rotulo-handling-badges {
  display: none;
}

/* Plantillas de rótulo: Logística y Compacto */
#rotulosPreview[data-template="logistica"] .rotulo-dest-city {
  font-size: 27px;
}

#rotulosPreview[data-template="compacto"] .rotulo-top-banner-inner,
#rotulosPreview[data-template="compacto"] .rotulo-core-band,
#rotulosPreview[data-template="compacto"] .rotulo-recipient-section,
#rotulosPreview[data-template="compacto"] .rotulo-footer-bar {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Fila inferior: Vista previa de hoja (A4) + Detalles de impresión */
.rotulos-bottom-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.rotulos-sheet-layout-card,
.rotulos-print-details-card {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rotulos-info-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rotulos-sheet-Layout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rotulos-sheet-thumb-btn {
  position: relative;
  padding: 8px 8px 7px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background-color: var(--surface-card);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.rotulos-sheet-thumb-btn:hover {
  border-color: #7c3aed;
}

.rotulos-sheet-thumb-btn.is-active {
  border-color: #6d28d9;
  background-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 4px 12px -6px rgba(109, 40, 217, 0.35);
}

[data-theme="dark"] .rotulos-sheet-thumb-btn.is-active {
  border-color: #a78bfa;
  background-color: rgba(124, 58, 237, 0.22);
}

.rotulos-thumb-check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #6d28d9;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(91, 33, 182, 0.45);
}

.rotulos-sheet-thumb-btn.is-active .rotulos-thumb-check {
  display: inline-flex;
}

.rotulos-thumb-canvas {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotulos-thumb-canvas svg {
  width: 100%;
  max-width: 108px;
  height: 56px;
}

.rotulos-sheet-thumb-btn strong {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
}

.rotulos-sheet-thumb-btn.is-active strong {
  color: #5b21b6;
}

[data-theme="dark"] .rotulos-sheet-thumb-btn.is-active strong {
  color: #ddd6fe;
}

.rotulos-specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.rotulos-specs-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.25;
}

.rotulos-specs-list strong {
  color: var(--text-primary);
  font-weight: 800;
}

.rotulos-specs-list small {
  color: var(--text-muted);
  font-size: 10.5px;
}

.rotulos-spec-check {
  color: #6d28d9;
  font-weight: 900;
  flex-shrink: 0;
}

.rotulos-privacy-check {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

.rotulos-privacy-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #6d28d9;
  flex-shrink: 0;
}

.rotulos-packing-sheet {
  background: var(--surface-card);
  border-radius: 10px;
  padding: 12px;
}

.rotulos-packing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

@media (max-width: 1240px) {
  .rotulos-layout.rotulos-two-col,
  .rotulos-bottom-row-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .rotulos-stepper {
    display: none;
  }
  .rotulos-core-band,
  .rotulo-core-band,
  .rotulo-meta-grid-2x2,
  .rotulos-sheet-Layout-options,
  #rotulosPreview[data-per-page="4"] .rotulos-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rotulo-top-banner-inner {
    flex-wrap: wrap;
    padding-right: 16px;
  }
  .rotulo-brand-right {
    border-left: 0;
    padding-left: 0;
  }
}
