/**
 * Merchandise Reports Styles
 */

.mlet-merch-reports-wrap,
.mlet-cashier-reports-wrap {
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.mlet-reports-header {
	text-align: center;
	margin-bottom: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.mlet-header-icon {
	font-size: 64px;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.mlet-header-text {
	text-align: center;
}

.mlet-reports-header h1 {
	font-size: 36px;
	font-weight: 700;
	background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0 0 10px 0;
}

.mlet-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0;
}

/* Stats Grid */
.mlet-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.mlet-stat-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 25px;
	border-radius: 16px;
	color: white;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mlet-stat-card:nth-child(2) {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mlet-stat-card:nth-child(3) {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mlet-stat-card:nth-child(4) {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mlet-stat-icon {
	font-size: 48px;
	line-height: 1;
}

.mlet-stat-info {
	flex: 1;
}

.mlet-stat-value {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 5px;
}

.mlet-stat-label {
	font-size: 14px;
	opacity: 0.9;
}

/* Notifications */
.mlet-notifications {
	background: white;
	padding: 20px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.mlet-notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.mlet-notification-header span {
	font-weight: 700;
	font-size: 18px;
	color: #1a1a1a;
}

.mlet-clear-notifications {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 13px;
}

.mlet-clear-notifications:hover {
	color: #667eea;
}

.mlet-notification-item {
	padding: 15px;
	background: #f8f9ff;
	border-left: 4px solid #667eea;
	border-radius: 8px;
	margin-bottom: 10px;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.mlet-notification-item.new {
	background: #e8f5e9;
	border-color: #4caf50;
}

.mlet-notification-time {
	font-size: 12px;
	color: #999;
	margin-bottom: 5px;
}

.mlet-notification-text {
	font-size: 14px;
	color: #1a1a1a;
}

.mlet-notification-details {
	font-size: 13px;
	color: #666;
	margin-top: 5px;
}

/* Filters */
.mlet-reports-filters {
	background: white;
	padding: 25px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.mlet-filter-group {
	flex: 1;
	min-width: 180px;
}

.mlet-filter-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1a1a1a;
	font-size: 14px;
}

.mlet-select {
	width: 100%;
	padding: 10px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	background: white;
}

.mlet-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mlet-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mlet-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.mlet-btn-secondary {
	background: #f5f5f5;
	color: #333;
}

.mlet-btn-secondary:hover {
	background: #e0e0e0;
}

/* Tabs */
.mlet-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	border-bottom: 2px solid #e0e0e0;
	overflow-x: auto;
}

.mlet-tab {
	padding: 12px 24px;
	border: none;
	background: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	color: #666;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.mlet-tab:hover {
	color: #667eea;
}

.mlet-tab.active {
	color: #667eea;
	border-bottom-color: #667eea;
}

/* Tab Content */
.mlet-tab-content {
	display: none;
	background: white;
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.mlet-tab-content.active {
	display: block;
}

.mlet-tab-content h2 {
	margin-top: 0;
	color: #1a1a1a;
	font-size: 24px;
}

/* Report Table */
.mlet-report-table-container {
	overflow-x: auto;
}

.mlet-report-table {
	width: 100%;
	border-collapse: collapse;
}

.mlet-report-table thead {
	background: #f8f9fa;
}

.mlet-report-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 2px solid #e0e0e0;
}

.mlet-report-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #f0f0f0;
}

.mlet-report-table tbody tr:hover {
	background: #f8f9ff;
}

/* Payment Methods Grid */
.mlet-payment-methods-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.mlet-payment-card {
	background: white;
	padding: 30px;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.mlet-payment-card:hover {
	transform: translateY(-5px);
}

.mlet-payment-icon {
	font-size: 48px;
	margin-bottom: 15px;
}

.mlet-payment-label {
	font-size: 16px;
	font-weight: 600;
	color: #666;
	margin-bottom: 10px;
}

.mlet-payment-amount {
	font-size: 32px;
	font-weight: 700;
	color: #667eea;
	margin-bottom: 5px;
}

.mlet-payment-count {
	font-size: 14px;
	color: #999;
}

/* Loading */
.mlet-loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.mlet-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 15px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Export Section */
.mlet-export-section {
	text-align: center;
	margin-top: 30px;
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Search Box */
.mlet-search-box {
	position: relative;
	margin-bottom: 20px;
}

.mlet-search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: #999;
}

#search-transactions {
	width: 100%;
	padding: 12px 15px 12px 45px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
}

/* Bestsellers Grid */
.mlet-bestsellers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.mlet-bestseller-card {
	background: white;
	padding: 25px;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 20px;
	transition: transform 0.3s;
}

.mlet-bestseller-card:hover {
	transform: translateY(-5px);
}

.mlet-bestseller-rank {
	font-size: 48px;
	line-height: 1;
}

.mlet-bestseller-info {
	flex: 1;
}

.mlet-bestseller-info h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #1a1a1a;
}

.mlet-bestseller-stats {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.mlet-stat-item {
	font-size: 14px;
	color: #666;
}

/* Stock Grid */
.mlet-stock-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.mlet-stock-card {
	background: white;
	padding: 20px;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 15px;
	border-left: 5px solid #ccc;
}

.mlet-stock-card.alert-danger {
	border-left-color: #ff4444;
	background: #fff5f5;
}

.mlet-stock-card.alert-warning {
	border-left-color: #FFB347;
	background: #fffbf0;
}

.mlet-stock-card.alert-info {
	border-left-color: #4facfe;
	background: #f0f9ff;
}

.mlet-stock-card.alert-success {
	border-left-color: #4caf50;
	background: #f1f8f4;
}

.mlet-stock-icon {
	font-size: 40px;
	line-height: 1;
}

.mlet-stock-info {
	flex: 1;
}

.mlet-stock-info h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
	color: #1a1a1a;
}

.mlet-stock-details {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 13px;
}

.mlet-stock-status {
	font-weight: 600;
	color: #666;
}

.mlet-stock-quantity strong {
	color: #ff4444;
}

/* Responsive */
@media (max-width: 768px) {
	.mlet-merch-reports-wrap,
	.mlet-cashier-reports-wrap {
		padding: 0 15px;
	}
	
	.mlet-reports-header h1 {
		font-size: 28px;
	}
	
	.mlet-stats-grid {
		grid-template-columns: 1fr;
	}
	
	.mlet-reports-filters {
		flex-direction: column;
	}
	
	.mlet-filter-group {
		min-width: 100%;
	}
	
	.mlet-tabs {
		justify-content: flex-start;
	}
	
	.mlet-payment-methods-grid {
		grid-template-columns: 1fr;
	}
	
	.mlet-export-section {
		flex-direction: column;
	}
}
