/* Tab Visibility */
.dashboard-tab,
.sync-tab,
.products-tab,
.notifications-tab {
	display: none;
}

.dashboard-tab.visible,
.sync-tab.visible,
.products-tab.visible,
.notifications-tab.visible {
	display: block;
}

.dashboard-tab.hidden,
.sync-tab.hidden,
.products-tab.hidden,
.notifications-tab.hidden {
	display: none;
}

/* Navigation */
nav-component {
	display: block;
	background: var(--bg-primary);
	border-bottom: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 700;
	color: #f52f41;
	text-decoration: none;
}

.nav-brand i {
	font-size: 24px;
}

.nav-tabs {
	display: flex !important;
	gap: 12px;
	visibility: visible !important;
}

/* Asegurar que los tabs del navbar sean visibles */
.nav-tabs .nav-tab {
	display: flex !important;
	visibility: visible !important;
}

.nav-tab {
	padding: 12px 16px;
	border: none;
	background: #f5f5f5;
	color: #666666;
	font-size: 14px;
	font-weight: 500;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-tab:hover {
	background: #e5e5e5;
	color: #333333;
}

.nav-tab.active {
	background: #f52f41;
	color: #ffffff;
	font-weight: bold;
	box-shadow: 0 2px 8px rgba(245, 47, 65, 0.3);
}

.nav-tab i {
	font-size: 14px;
}

/* REGLA ESTRICTA: Solo un tab puede estar visible a la vez */
.main-content dashboard-tab,
.main-content products-tab,
.main-content notifications-tab,
.main-content settings-tab {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -9999px !important;
}

/* Solo el tab activo puede ser visible */
.main-content dashboard-tab.active,
.main-content products-tab.active,
.main-content notifications-tab.active,
.main-content settings-tab.active {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	left: auto !important;
}

/* Search Box */
.search-box {
	position: relative;
	display: flex;
	align-items: center;
	z-index: 10;
}

.search-box i {
	position: absolute;
	left: 12px;
	color: #666;
	z-index: 2;
	pointer-events: none;
}

.search-box input {
	padding: 8px 12px 8px 40px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	width: 300px;
	background: white;
	position: relative;
	z-index: 1;
	cursor: text;
}

.search-box input:focus {
	outline: none;
	border-color: #f52f41;
	box-shadow: 0 0 0 3px rgba(245, 47, 65, 0.1);
}

/* Filter Controls */
.filter-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-controls label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.filter-select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	background: white;
	cursor: pointer;
}

.filter-select:focus {
	outline: none;
	border-color: #f52f41;
}

/* Stats Cards */
.stat-card {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e5e5;
	min-width: 0;
	flex: 1;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.stat-icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: white;
	flex-shrink: 0;
}

.stat-icon.total {
	background: #4f46e5;
}
.stat-icon.active {
	background: #10b981;
}
.stat-icon.inactive {
	background: #f59e0b;
}
.stat-icon.error {
	background: #ef4444;
}
.stat-icon.pending {
	background: #3b82f6;
}
.stat-icon.processing {
	background: #8b5cf6;
}
.stat-icon.completed {
	background: #10b981;
}
.stat-icon.failed {
	background: #ef4444;
}
.stat-icon.primary {
	background: #4f46e5;
}
.stat-icon.success {
	background: #10b981;
}
.stat-icon.warning {
	background: #f59e0b;
}

.stat-content {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
}

.stat-number {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

/* Para fechas que pueden tener salto de línea */
.stat-number.with-break {
	white-space: normal;
	line-height: 1.1;
}

/* Para el scheduler que muestra texto en lugar de números */
.stat-number.scheduler-text {
	font-size: 14px;
	font-weight: 600;
}

.stat-label {
	font-size: 10px;
	color: #6b7280;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	text-align: left;
}

/* Stats Container */
.products-stats,
.notifications-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
	width: 100%;
	overflow: hidden;
}

/* Dashboard stats específicas */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
	width: 100%;
	overflow: hidden;
}

/* Stat change elements */
.stat-change {
	font-size: 9px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	justify-content: flex-start;
	text-align: left;
}

.stat-change.positive {
	color: #10b981;
}

.stat-change.negative {
	color: #ef4444;
}

.stat-change.warning {
	color: #f59e0b;
}

.stat-change.neutral {
	color: #6b7280;
}

/* Product Cards */
.product-card {
	background: white;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
	border: 1px solid #e5e5e5;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

.product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.product-card.active {
	border-left: 4px solid #10b981;
}

.product-card.inactive {
	border-left: 4px solid #f59e0b;
}

.product-card.error {
	border-left: 4px solid #ef4444;
}

.product-card.pending {
	border-left: 4px solid #3b82f6;
}

/* Product Cards Mini */
.product-card-mini {
	background: white;
	border-radius: 8px;
	padding: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e5e5;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	transition: all 0.2s ease;
}

.product-card-mini:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-1px);
}

.product-card-mini.active {
	border-left: 4px solid #10b981;
	background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.product-card-mini.inactive {
	border-left: 4px solid #ef4444;
	background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.product-card-mini .product-info {
	flex: 1;
	min-width: 0;
}

.product-card-mini .product-name {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.product-card-mini .product-price {
	font-size: 12px;
	color: #6b7280;
	font-weight: 500;
}

.product-card-mini .product-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	flex-shrink: 0;
	padding: 4px 8px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.8);
	flex-wrap: wrap;
}

.product-card-mini .product-status i {
	font-size: 14px;
	color: inherit;
}

.product-card-mini.active .product-status {
	color: #10b981 !important;
	background: rgba(16, 185, 129, 0.1);
}

.product-card-mini.active .product-status i {
	color: #10b981 !important;
}

.product-card-mini.inactive .product-status {
	color: #ef4444 !important;
	background: rgba(239, 68, 68, 0.1);
}

.product-card-mini.inactive .product-status i {
	color: #ef4444 !important;
}

/* Products Grid */
#products-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.product-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.product-status {
	display: flex;
	align-items: center;
	gap: 8px;
}

.product-status i {
	font-size: 16px;
}

.product-status .status-text {
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-name {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 12px;
}

.product-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.detail-item {
	font-size: 14px;
	color: #4b5563;
}

.detail-item strong {
	color: #1f2937;
	font-weight: 600;
}

.product-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b7280;
}

.meta-item i {
	font-size: 12px;
}

/* Notification Cards */
.notification-card {
	background: white;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
	border: 1px solid #e5e5e5;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

.notification-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.notification-card.pending {
	border-left: 4px solid #3b82f6;
}

.notification-card.processing {
	border-left: 4px solid #8b5cf6;
}

.notification-card.completed {
	border-left: 4px solid #10b981;
}

.notification-card.failed {
	border-left: 4px solid #ef4444;
}

.notification-card.cancelled {
	border-left: 4px solid #6b7280;
}

.notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.notification-status {
	display: flex;
	align-items: center;
	gap: 8px;
}

.notification-status i {
	font-size: 16px;
}

.notification-status .status-text {
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.notification-date {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b7280;
}

.notification-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.notification-info {
	flex: 1;
}

.notification-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

/* Empty and Loading States */
/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	padding: 20px;
}

.page-info {
	font-size: 14px;
	color: #6b7280;
	font-weight: 500;
}

/* Status Indicator */
.status-indicator {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
	padding: var(--spacing-xs) var(--spacing-sm);
	border-radius: var(--border-radius);
	font-size: var(--font-size-xs);
	font-weight: 500;
}

.status-indicator.online {
	background: rgba(16, 185, 129, 0.1);
	color: var(--success-color);
}

.status-indicator.offline {
	background: rgba(239, 68, 68, 0.1);
	color: var(--error-color);
}

.status-indicator.warning {
	background: rgba(245, 158, 11, 0.1);
	color: var(--warning-color);
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* Cards */
.card {
	background: var(--bg-primary);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	overflow: hidden;
}

.card-header {
	padding: var(--spacing-lg);
	border-bottom: 1px solid var(--border-color);
	background: var(--bg-secondary);
}

.card-title {
	font-size: var(--font-size-lg);
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

.card-subtitle {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	margin-top: var(--spacing-xs);
}

.card-body {
	padding: var(--spacing-lg);
}

.card-footer {
	padding: var(--spacing-lg);
	border-top: 1px solid var(--border-color);
	background: var(--bg-secondary);
}

/* Grid Layout */
.grid {
	display: grid;
	gap: var(--spacing-lg);
}

.grid-1 {
	grid-template-columns: 1fr;
}
.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Stats Cards */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-xl);
}

.stat-card {
	background: var(--bg-primary);
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	transition: transform var(--transition-fast);
}

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.stat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--spacing-md);
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--border-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-size-xl);
	color: var(--text-white);
}

.stat-icon.primary {
	background: var(--primary-color);
}
.stat-icon.success {
	background: var(--success-color);
}
.stat-icon.warning {
	background: var(--warning-color);
}
.stat-icon.error {
	background: var(--error-color);
}

.stat-value {
	font-size: var(--font-size-3xl);
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: var(--spacing-xs);
}

.stat-label {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	font-weight: 500;
}

.stat-change {
	font-size: var(--font-size-xs);
	font-weight: 500;
	margin-top: var(--spacing-xs);
}

.stat-change.positive {
	color: var(--success-color);
}

.stat-change.negative {
	color: var(--error-color);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-xs);
	padding: var(--spacing-sm) var(--spacing-md);
	border: none;
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--transition-fast);
	white-space: nowrap;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-primary {
	background: var(--primary-color);
	color: var(--text-white);
}

.btn-primary:hover:not(:disabled) {
	background: var(--primary-hover);
}

.btn-secondary {
	background: var(--secondary-color);
	color: var(--text-white);
}

.btn-success {
	background: var(--success-color);
	color: var(--text-white);
}

.btn-warning {
	background: var(--warning-color);
	color: var(--text-white);
}

.btn-error {
	background: var(--error-color);
	color: var(--text-white);
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
	background: var(--bg-tertiary);
}

.btn-sm {
	padding: var(--spacing-xs) var(--spacing-sm);
	font-size: var(--font-size-xs);
}

.btn-lg {
	padding: var(--spacing-md) var(--spacing-lg);
	font-size: var(--font-size-lg);
}

/* Forms */
.form-group {
	margin-bottom: var(--spacing-lg);
}

.form-label {
	display: block;
	font-size: var(--font-size-sm);
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: var(--spacing-xs);
}

.form-input {
	width: 100%;
	padding: var(--spacing-sm) var(--spacing-md);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	background: var(--bg-primary);
	color: var(--text-primary);
	transition: border-color var(--transition-fast);
}

.form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
	width: 100%;
	padding: var(--spacing-sm) var(--spacing-md);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	background: var(--bg-primary);
	color: var(--text-primary);
	cursor: pointer;
}

.form-textarea {
	width: 100%;
	min-height: 100px;
	padding: var(--spacing-sm) var(--spacing-md);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	background: var(--bg-primary);
	color: var(--text-primary);
	resize: vertical;
	font-family: inherit;
}

/* Tables */
.table-container {
	overflow-x: auto;
	border-radius: var(--border-radius-lg);
	border: 1px solid var(--border-color);
}

.table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-primary);
}

.table th,
.table td {
	padding: var(--spacing-md);
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

.table th {
	background: var(--bg-secondary);
	font-weight: 600;
	color: var(--text-primary);
	font-size: var(--font-size-sm);
}

.table td {
	color: var(--text-primary);
	font-size: var(--font-size-sm);
}

.table tbody tr:hover {
	background: var(--bg-tertiary);
}

/* Badges */
.badge {
	display: inline-flex;
	align-items: center;
	padding: var(--spacing-xs) var(--spacing-sm);
	border-radius: var(--border-radius);
	font-size: var(--font-size-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.badge-success {
	background: rgba(16, 185, 129, 0.1);
	color: var(--success-color);
}

.badge-warning {
	background: rgba(245, 158, 11, 0.1);
	color: var(--warning-color);
}

.badge-error {
	background: rgba(239, 68, 68, 0.1);
	color: var(--error-color);
}

.badge-info {
	background: rgba(59, 130, 246, 0.1);
	color: var(--info-color);
}

/* Responsive */
@media (max-width: 768px) {
	.nav-container {
		padding: 0 var(--spacing-md);
		flex-direction: column;
		height: auto;
		gap: var(--spacing-md);
	}

	.nav-tabs {
		flex-wrap: wrap;
		justify-content: center;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.table-container {
		font-size: var(--font-size-xs);
	}

	.table th,
	.table td {
		padding: var(--spacing-sm);
	}
}

/* SKU Test Styles */
.test-result {
	margin-top: var(--spacing-md);
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	background: var(--bg-secondary);
}

.test-result.hidden {
	display: none;
}

.test-result-content {
	background: var(--bg-primary);
	border-radius: var(--border-radius);
	padding: var(--spacing-md);
	border: 1px solid var(--border-color);
}

.test-result-content.error {
	border-color: var(--error-color);
	background: rgba(var(--error-color-rgb), 0.05);
}

.result-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--spacing-md);
	padding-bottom: var(--spacing-sm);
	border-bottom: 1px solid var(--border-color);
}

.result-header h4 {
	margin: 0;
	color: var(--text-primary);
	font-size: var(--font-size-lg);
}

.result-details {
	margin-bottom: var(--spacing-md);
}

.detail-item {
	margin-bottom: var(--spacing-sm);
	padding: var(--spacing-xs);
	background: var(--bg-secondary);
	border-radius: var(--border-radius-sm);
}

.detail-item strong {
	color: var(--text-primary);
	margin-right: var(--spacing-xs);
}

.stock-details {
	background: var(--bg-secondary);
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
}

.stock-details h5 {
	margin: 0 0 var(--spacing-sm) 0;
	color: var(--text-primary);
	font-size: var(--font-size-md);
}

.stock-details ul {
	margin: 0;
	padding-left: var(--spacing-md);
}

.stock-details li {
	margin-bottom: var(--spacing-xs);
	color: var(--text-secondary);
}

/* SKU Test Form Styles */
.form-group {
	margin-bottom: var(--spacing-md);
}

.form-group label {
	display: block;
	margin-bottom: var(--spacing-xs);
	font-weight: 500;
	color: var(--text-primary);
	font-size: var(--font-size-sm);
}

.form-control {
	width: 100%;
	padding: var(--spacing-sm) var(--spacing-md);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: var(--font-size-sm);
	transition: all 0.2s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.form-control::placeholder {
	color: var(--text-tertiary);
}

.input-group {
	display: flex;
	gap: 0;
	align-items: stretch;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.input-group .form-control {
	flex: 1;
	border-radius: 0;
	border-right: none;
	background: var(--bg-primary);
}

.input-group .form-control:focus {
	border-color: var(--primary-color);
	box-shadow: none;
}

.input-group .btn {
	border-radius: 0;
	white-space: nowrap;
	padding: var(--spacing-sm) var(--spacing-md);
	font-size: var(--font-size-sm);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
	background: var(--primary-color);
	color: var(--text-white);
	border: 1px solid var(--primary-color);
	transition: all 0.2s ease;
}

.input-group .btn:hover {
	background: var(--primary-color-dark);
	border-color: var(--primary-color-dark);
	transform: translateY(-1px);
}

.input-group .btn i {
	font-size: var(--font-size-xs);
}

/* Database update styles */
.database-update {
	margin-top: var(--spacing-sm);
	padding: var(--spacing-sm);
	background: var(--bg-primary);
	border-radius: var(--border-radius-sm);
	border-left: 3px solid var(--primary-color);
}

.detail-item {
	margin-bottom: var(--spacing-xs);
	font-size: var(--font-size-sm);
}

.change-notice {
	color: var(--warning-color);
	font-weight: 600;
}

.no-change {
	color: var(--text-secondary);
	font-style: italic;
}

/* Notifications Styles  */
.notifications-container {
	padding: var(--spacing-lg);
}

.notifications-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--spacing-xl);
	flex-wrap: wrap;
	gap: var(--spacing-md);
}

.notifications-header h2 {
	color: var(--text-primary);
	margin: 0;
	font-size: var(--font-size-2xl);
	font-weight: 600;
}

.notifications-controls {
	display: flex;
	gap: var(--spacing-md);
	align-items: center;
}

.notifications-list {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.notification-card {
	background: var(--bg-primary);
	border-radius: var(--border-radius-lg);
	border: 1px solid var(--border-color);
	padding: var(--spacing-lg);
	transition: all 0.2s ease;
}

.notification-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.notification-card.completed {
	border-left: 4px solid var(--success-color);
}

.notification-card.pending {
	border-left: 4px solid var(--warning-color);
}

.notification-card.processing {
	border-left: 4px solid var(--info-color);
}

.notification-card.failed {
	border-left: 4px solid var(--error-color);
}

.notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--spacing-md);
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.notification-status {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
}

.status-pending {
	color: var(--warning-color);
}

.status-processing {
	color: var(--info-color);
}

.status-completed {
	color: var(--success-color);
}

.status-failed {
	color: var(--error-color);
}

.notification-date {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
	color: var(--text-secondary);
	font-size: var(--font-size-sm);
}

.notification-body {
	margin-bottom: var(--spacing-md);
}

.notification-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--spacing-sm);
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
}

.info-item strong {
	color: var(--text-primary);
	font-weight: 600;
}

.download-link {
	color: var(--primary-color);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
}

.download-link:hover {
	text-decoration: underline;
}

.notification-actions {
	display: flex;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
}

/* Products Styles */
.products-container {
	padding: var(--spacing-lg);
}

.products-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--spacing-xl);
	flex-wrap: wrap;
	gap: var(--spacing-md);
}

.products-header h2 {
	color: var(--text-primary);
	margin: 0;
	font-size: var(--font-size-2xl);
	font-weight: 600;
}

.products-controls {
	display: flex;
	gap: var(--spacing-md);
	align-items: center;
	flex-wrap: wrap;
}

.search-box {
	position: relative;
	flex: 1;
	min-width: 300px;
}

.search-box input {
	padding-right: 40px;
}

.search-box i {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-secondary);
}

.products-stats {
	margin-bottom: var(--spacing-xl);
}

.products-stats .stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--spacing-md);
}

.products-stats .stat-card {
	background: var(--bg-primary);
	border-radius: var(--border-radius-lg);
	border: 1px solid var(--border-color);
	padding: var(--spacing-lg);
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
	transition: all 0.2s ease;
}

.products-stats .stat-card:hover {
	box-shadow: var(--shadow-sm);
	transform: translateY(-1px);
}

.products-stats .stat-card.active {
	border-left: 4px solid var(--success-color);
}

.products-stats .stat-card.inactive {
	border-left: 4px solid var(--error-color);
}

.products-stats .stat-card.with-stock {
	border-left: 4px solid var(--info-color);
}

.products-stats .stat-card.without-stock {
	border-left: 4px solid var(--warning-color);
}

.products-stats .stat-icon {
	font-size: 2rem;
	color: white;
	width: 48px;
	height: 48px;
	border-radius: var(--border-radius);
	display: flex;
	align-items: center;
	justify-content: center;
}

.products-stats .stat-icon.total {
	background: var(--primary-color);
}

.products-stats .stat-icon.active {
	background: var(--success-color);
}

.products-stats .stat-icon.inactive {
	background: var(--warning-color);
}

.products-stats .stat-icon.error {
	background: var(--error-color);
}

.products-stats .stat-content {
	flex: 1;
}

.products-stats .stat-number {
	font-size: var(--font-size-2xl);
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: var(--spacing-xs);
}

.products-stats .stat-label {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	font-weight: 500;
}

.products-list {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.product-card {
	background: var(--bg-primary);
	border-radius: var(--border-radius-lg);
	border: 1px solid var(--border-color);
	padding: var(--spacing-lg);
	transition: all 0.2s ease;
}

.product-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.product-card.active {
	border-left: 4px solid var(--success-color);
}

.product-card.inactive {
	border-left: 4px solid var(--error-color);
}

.product-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--spacing-md);
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.product-status {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
}

.status-active {
	color: var(--success-color);
}

.status-inactive {
	color: var(--error-color);
}

.product-actions {
	display: flex;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
}

/* Compare Modal Styles */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-container {
	background: white;
	border-radius: 12px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
	max-width: 800px;
	width: 100%;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f9fafb;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	display: flex;
	align-items: center;
	gap: 8px;
}

.modal-close {
	background: none;
	border: none;
	font-size: 20px;
	color: #6b7280;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.modal-close:hover {
	background: #e5e7eb;
	color: #374151;
}

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

.modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* Compare Content Styles */
.product-info-section,
.elconix-info-section,
.comparison-section {
	margin-bottom: 24px;
}

.product-info-section h4,
.elconix-info-section h4,
.comparison-section h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	display: flex;
	align-items: center;
	gap: 8px;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.info-item label {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-item span {
	font-size: 14px;
	color: #1f2937;
	font-weight: 500;
}

.status-badge {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block;
	width: fit-content;
}

.status-badge.active {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
}

.status-badge.inactive {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.stock-value {
	font-weight: 600;
}

.stock-value.in-stock {
	color: #10b981;
}

.stock-value.out-of-stock {
	color: #ef4444;
}

/* Stock Details */
.stock-details {
	margin-top: 16px;
	padding: 16px;
	background: #f9fafb;
	border-radius: 8px;
}

.stock-details h5 {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

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

.stock-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: white;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
}

.stock-item.highlight {
	border-color: #3b82f6;
	background: rgba(59, 130, 246, 0.05);
}

.stock-item .warehouse {
	font-weight: 600;
	color: #1f2937;
}

.stock-item .available,
.stock-item .instock {
	font-size: 12px;
	color: #6b7280;
}

/* Comparison Grid */
.comparison-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.comparison-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	padding: 16px;
	background: #f9fafb;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.comparison-item label {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.comparison-value {
	font-size: 14px;
	font-weight: 600;
}

.comparison-value.match {
	color: #10b981;
}

.comparison-value.no-match {
	color: #ef4444;
}

.comparison-value.unknown {
	color: #6b7280;
}

/* No Data State */
.no-data {
	text-align: center;
	padding: 32px;
	color: #6b7280;
}

.no-data i {
	font-size: 32px;
	margin-bottom: 12px;
	color: #f59e0b;
}

.no-data p {
	margin: 0;
	font-size: 14px;
}

/* Loading State */
.loading-state {
	text-align: center;
	padding: 32px;
	color: #6b7280;
}

.loading-state i {
	font-size: 24px;
	margin-bottom: 12px;
	color: #3b82f6;
}

.loading-state p {
	margin: 0;
	font-size: 14px;
}

/* Error State */
.error-state {
	text-align: center;
	padding: 32px;
	color: #6b7280;
}

.error-state i {
	font-size: 32px;
	margin-bottom: 12px;
	color: #ef4444;
}

.error-state h3 {
	margin: 0 0 8px 0;
	font-size: 16px;
	color: #1f2937;
}

.error-state p {
	margin: 0 0 16px 0;
	font-size: 14px;
}

/* Compare Button */
.compare-btn {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: white;
	border: none;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: 4px;
	white-space: nowrap;
}

.compare-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.compare-btn:active {
	transform: translateY(0);
}

.compare-btn i {
	font-size: 8px;
}

.product-body {
	margin-bottom: var(--spacing-md);
}

.product-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--spacing-sm);
}

.info-row {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
}

.info-row strong {
	color: var(--text-primary);
	font-weight: 600;
}

.stock-available {
	color: var(--success-color);
	font-weight: 600;
}

.stock-unavailable {
	color: var(--error-color);
	font-weight: 600;
}

.empty-state,
.error-state {
	text-align: center;
	padding: var(--spacing-2xl);
	color: var(--text-secondary);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.empty-state i,
.error-state i {
	font-size: 3rem;
	margin-bottom: var(--spacing-md);
}

.empty-state i {
	color: var(--text-muted);
}

.error-state i {
	color: var(--error-color);
}

.empty-state h3,
.error-state h3 {
	font-size: var(--font-size-xl);
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--spacing-sm);
}

.empty-state p,
.error-state p {
	font-size: var(--font-size-base);
	color: var(--text-secondary);
	margin-bottom: var(--spacing-lg);
}

.loading-state {
	text-align: center;
	padding: var(--spacing-2xl);
	color: var(--text-secondary);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.loading-state i {
	font-size: 2rem;
	margin-bottom: var(--spacing-md);
	color: var(--primary-color);
}

.loading-state p {
	font-size: var(--font-size-base);
	color: var(--text-secondary);
	margin-top: var(--spacing-sm);
}

.pagination-container {
	display: flex;
	justify-content: center;
	margin-top: var(--spacing-xl);
}

.pagination {
	display: flex;
	gap: var(--spacing-xs);
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.modal-content {
	background: var(--bg-primary);
	border-radius: var(--border-radius-lg);
	max-width: 80%;
	max-height: 80%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: var(--spacing-lg);
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	margin: 0;
	color: var(--text-primary);
}

.btn-close {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: var(--spacing-xs);
}

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

.modal-body {
	padding: var(--spacing-lg);
	overflow: auto;
}

.modal-body pre {
	background: var(--bg-secondary);
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	overflow-x: auto;
}
