/* Estilos Premium para FactuPrinter ARCA */

:root {
  --bg-primary: #0a0c16;
  --bg-secondary: #111322;
  --bg-card: rgba(22, 26, 46, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #a855f7; /* Violet */
  --accent-success: #10b981; /* Esmeralda */
  --accent-warning: #f59e0b; /* Amber */
  --accent-danger: #ef4444; /* Red */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de estilos */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Layout Principal */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar de Navegación */
.sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  flex-shrink: 0;
  z-index: 10;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 0.5rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.menu-item.active i {
  color: #c084fc;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.user-info .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-info .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Área de Contenido Principal */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Encabezado de la página */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Efecto Glassmorphism Tarjetas */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Estilos de las Vistas (Sections) */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard Grid */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.metric-card.blue .metric-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.metric-card.purple .metric-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.metric-card.green .metric-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.metric-card.orange .metric-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

.chart-container {
  min-height: 320px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Facturador / Punto de Venta Layout */
.pos-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  height: calc(100vh - 180px);
}

@media (max-width: 900px) {
  .pos-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.catalog-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 0.65rem 0.65rem 2.2rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.category-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}

.category-tab {
  padding: 0.4rem 1rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.category-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.category-tab.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.25rem;
}

.product-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.product-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.product-card-code {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  margin-bottom: auto;
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.product-card-price {
  font-weight: 700;
  color: #a855f7;
  font-size: 1rem;
}

.product-card-add {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.product-card:hover .product-card-add {
  background-color: var(--accent-primary);
  color: white;
}

/* Cart Panel */
.cart-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.client-select-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.client-dropdown {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--text-main);
  outline: none;
}

.client-dropdown option {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.25rem;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  transition: var(--transition-smooth);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.qty-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cart-item-qty {
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-total {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 70px;
  text-align: right;
  margin-left: 0.5rem;
}

.cart-summary {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.btn-danger:hover {
  background-color: #ef4444;
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Modales y Formularios */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 6, 12, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Simulador de AFIP Progress Overlay */
.afip-loading-container {
  text-align: center;
  padding: 2rem 0;
}

.afip-logo-anim {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(59, 130, 246, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
}

.progress-bar-wrapper {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin: 1.5rem 0;
}

.progress-bar-fill {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.afip-status-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tablas */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.custom-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-info {
  background-color: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

/* Configuraciones form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.07);
}

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

/* --- ESTILOS DE TICKET PARA IMPRESIÓN --- */

/* Contenedor del Ticket que se mostrará en modal de previsualización */
.ticket-preview-box {
  background: white;
  color: black;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  max-height: 450px;
  overflow-y: auto;
}

.ticket-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
  background-color: #fff;
  padding: 10px;
  box-sizing: border-box;
}

.ticket-container.width-58mm {
  width: 220px; /* Aprox. 58mm */
}

.ticket-container.width-80mm {
  width: 300px; /* Aprox. 80mm */
}

.ticket-header {
  text-align: center;
  margin-bottom: 10px;
}

.ticket-logo {
  font-weight: bold;
  font-size: 14px;
  border: 2px solid #000;
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 5px;
}

.company-name {
  font-size: 14px;
  font-weight: bold;
  margin: 2px 0;
}

.company-details {
  font-size: 10px;
  margin: 1px 0;
}

.divider-dashed {
  border-top: 1px dashed #000;
  margin: 8px 0;
}

.ticket-type-box {
  border: 1px solid #000;
  width: 50px;
  height: 50px;
  margin: 5px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket-letter {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.ticket-code {
  font-size: 8px;
  font-weight: bold;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
}

.ticket-info, .ticket-client {
  font-size: 11px;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 5px 0;
}

.ticket-table th {
  border-bottom: 1px solid #000;
  text-align: left;
  font-weight: bold;
}

.ticket-table td {
  padding: 3px 0;
  vertical-align: top;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.font-sm {
  font-size: 10px;
}

.font-xs {
  font-size: 8px;
}

.font-bold {
  font-weight: bold;
}

.ticket-total {
  font-size: 14px;
  font-weight: bold;
  padding: 5px 0;
}

.ticket-footer {
  text-align: center;
  margin-top: 10px;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

/* El elemento del QR dinámico */
.qr-container svg, .qr-container img {
  width: 100px;
  height: 100px;
  margin-bottom: 3px;
}

.cae-info {
  font-size: 10px;
  margin-top: 5px;
}

.greeting {
  margin-top: 10px;
}

/* --- IMPRESIÓN REAL --- */
/* Esta clase envolverá el ticket al imprimir para que solo esto sea visible */
#print-section {
  display: none;
}

@media print {
  /* Ocultar toda la interfaz web */
  body, .app-container, .modal-overlay, #print-section {
    visibility: hidden;
    background: white;
  }
  
  /* Mostrar solamente el contenido a imprimir en el top-left de la página */
  #print-section {
    display: block !important;
    visibility: visible !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  #print-section * {
    visibility: visible !important;
  }

  /* Ajustes de página para thermal printing */
  @page {
    margin: 0;
    size: auto;
  }
}

/* Entrada de Precio Manual en Carrito */
.cart-item-price-input {
  width: 75px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-align: right;
  margin: 0 4px;
}

.cart-item-price-input:focus {
  border-color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.cart-item-price-input::-webkit-outer-spin-button,
.cart-item-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item-price-input[type=number] {
  -moz-appearance: textfield;
}

/* Pantalla Completa de Autenticación */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.auth-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.auth-overlay.active .auth-card {
  transform: translateY(0);
}

.auth-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.auth-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* Pantalla de Bloqueo de Suscripción Vencida */
.block-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 6, 12, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.block-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.block-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-secondary);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.block-overlay.active .block-card {
  transform: scale(1);
}

.block-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Corrección de visibilidad de las opciones en menús desplegables (select) */
select, .form-control {
  background-color: var(--bg-secondary) !important;
  color: var(--text-main) !important;
}

select option, .form-control option, .client-dropdown option {
  background-color: #111322 !important; /* var(--bg-secondary) */
  color: #f8fafc !important; /* var(--text-main) */
}

/* Estilo para botones de pestañas activas */
.btn-secondary.active {
  background-color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  color: white !important;
}

/* Buscador de clientes autocompletable POS */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #16182e; /* Fondo oscuro sólido */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  margin-top: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.suggestion-item {
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
  color: var(--text-main);
  text-align: left;
  line-height: 1.4;
}

.suggestion-item:hover {
  background-color: var(--accent-primary);
  color: white;
}
