/* 360 Analytics for WooCommerce - Professional Modern Design System */
:root {
	/* Primary Brand Colors */
	--anfowo-primary: #4f46e5;
	--anfowo-primary-light: #eef2ff;
	--anfowo-primary-dark: #3730a3;

	/* Functional Colors */
	--anfowo-success: #10b981;
	--anfowo-success-light: #ecfdf5;
	--anfowo-warning: #f59e0b;
	--anfowo-warning-light: #fff7ed;
	--anfowo-danger: #ef4444;
	--anfowo-danger-light: #fef2f2;

	/* Layout & Neutrals */
	--anfowo-bg: #f3f4f6;
	--anfowo-header-bg: #1e293b;
	--anfowo-card-bg: #ffffff;
	--anfowo-border: #e5e7eb;
	--anfowo-border-hover: #d1d5db;

	/* Typography */
	--anfowo-text-main: #111827;
	--anfowo-text-muted: #6b7280;
	--anfowo-text-inverse: #ffffff;

	/* Shadows & Depth */
	--anfowo-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--anfowo-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--anfowo-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--anfowo-radius: 12px;
	--anfowo-radius-lg: 16px;
}

/* Notices anchor: collapses to zero when WordPress injects no notices */
.anfowo-notices-wrap {
	margin: 0;
	padding: 0;
	min-height: 0;
}

.anfowo-notices-wrap:empty,
.anfowo-notices-wrap h2:only-child {
	display: none;
}

.anfowo-wrap {
	margin: 20px 20px 20px 0;
	font-family: 'Inter', -apple-system, system-ui, sans-serif;
	color: var(--anfowo-text-main);
	background-color: var(--anfowo-bg);
	border-radius: var(--anfowo-radius);
	padding: 0;
	/* overflow: hidden removed — it was clipping WordPress admin notices */
	-webkit-font-smoothing: antialiased;
}

/* Sticky Header & Navigation Wrapper */
.anfowo-sticky-header {
	position: -webkit-sticky;
	position: sticky;
	top: 32px;
	z-index: 999;
	border-radius: var(--anfowo-radius) var(--anfowo-radius) 0 0;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

@media screen and (max-width: 782px) {
	.anfowo-sticky-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.anfowo-sticky-header {
		top: 0;
	}
}

body:not(.admin-bar) .anfowo-sticky-header {
	top: 0;
}

/* Header Section Refined */
.anfowo-header {
	background: linear-gradient(135deg, #1e1b2e 0%, #2a2438 100%);
	padding: 24px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--anfowo-radius) var(--anfowo-radius) 0 0;
}

.anfowo-header h1 {
	margin: 0;
	color: white;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.anfowo-controls {
	display: flex;
	gap: 12px;
	align-items: center;
}

#anfowo-custom-dates {
	display: none;
	gap: 8px;
	align-items: center;
}

/* Header Controls - Matching Suitable Sizes */
.anfowo-header select,
.anfowo-header input[type="date"],
.anfowo-btn-export-alt {
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	line-height: normal !important;
	font-size: 13.5px !important;
	font-family: inherit !important;
	border-radius: 8px !important;
	box-sizing: border-box !important;
	vertical-align: middle !important;
	margin: 0 !important;
}

.anfowo-header select {
	background: #ffffff !important;
	border: 1px solid #d1d5db !important;
	color: #374151 !important;
	padding: 0 32px 0 14px !important;
	font-weight: 500 !important;
	outline: none !important;
	cursor: pointer !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	background-size: 15px !important;
}

.anfowo-header select:hover,
.anfowo-header select:focus {
	border-color: #6366f1 !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.anfowo-header input[type="date"] {
	background: #ffffff !important;
	border: 1px solid #d1d5db !important;
	color: #374151 !important;
	padding: 0 12px !important;
	font-weight: 500 !important;
	outline: none !important;
	cursor: pointer !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.anfowo-header input[type="date"]:hover,
.anfowo-header input[type="date"]:focus {
	border-color: #6366f1 !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.anfowo-btn-export-alt {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	background: #4f46e5 !important;
	color: #ffffff !important;
	border: 1px solid #4f46e5 !important;
	padding: 0 18px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	white-space: nowrap !important;
}

.anfowo-btn-export-alt:hover {
	background: #4338ca !important;
	border-color: #4338ca !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
	transform: translateY(-1px);
}

.anfowo-btn-export-alt:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2) !important;
}

/* Navigation Bar Pop-Up Styling */
.anfowo-nav {
	background: #ffffff;
	padding: 12px 24px;
	border-bottom: 1px solid var(--anfowo-border);
	display: flex;
	gap: 10px;
	align-items: center;
	overflow-x: auto;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.anfowo-nav-item {
	padding: 8px 16px;
	color: #64748b;
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
	position: relative;
	border-radius: 10px;
	background: transparent;
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	user-select: none;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

/* Navigation Icon Pop-Up Badge Styling */
.anfowo-nav-icon-wrap {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: #f1f5f9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.anfowo-nav-icon-wrap svg {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease, stroke 0.3s ease;
	opacity: 0.85;
}

.anfowo-nav-item:hover {
	color: #4f46e5;
	background: #f8fafc;
	transform: translateY(-2px);
}

.anfowo-nav-item:hover .anfowo-nav-icon-wrap {
	background: #4f46e5;
	color: #ffffff;
	transform: translateY(-5px) scale(1.18);
	box-shadow: 0 8px 16px -2px rgba(79, 70, 229, 0.4);
}

.anfowo-nav-item:hover .anfowo-nav-icon-wrap svg {
	transform: scale(1.1) rotate(-6deg);
	stroke: #ffffff;
	opacity: 1;
}

.anfowo-nav-item:active {
	transform: translateY(0);
}

.anfowo-nav-item.active {
	color: #4f46e5;
	background: #eef2ff;
	font-weight: 700;
}

.anfowo-nav-item.active .anfowo-nav-icon-wrap {
	background: #4f46e5;
	color: #ffffff;
	transform: translateY(-4px) scale(1.12);
	box-shadow: 0 8px 18px -2px rgba(79, 70, 229, 0.45);
	animation: anfowo-icon-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anfowo-nav-item.active .anfowo-nav-icon-wrap svg {
	stroke: #ffffff;
	opacity: 1;
}

@keyframes anfowo-icon-bounce {
	0% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-8px) scale(1.28); }
	100% { transform: translateY(-4px) scale(1.12); }
}

.anfowo-nav-item.active::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 3px;
	background: #4f46e5;
	border-radius: 3px;
}

/* Spinner */
.anfowo-loader-placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}

.anfowo-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e5e7eb;
	border-top-color: #4f46e5;
	border-radius: 50%;
	animation: anfowo-spin 1s linear infinite;
}

@keyframes anfowo-spin {
	to {
		transform: rotate(360deg);
	}
}

.anfowo-faded {
	opacity: 0.5;
	pointer-events: none;
}

/* KPI Cards - Vibrant Side Color Accent & Soft Side Gradient */
.anfowo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	padding: 32px;
}

.anfowo-card {
	position: relative;
	background: #ffffff;
	padding: 20px;
	border-radius: var(--anfowo-radius-lg);
	border: 1px solid var(--anfowo-border);
	box-shadow: var(--anfowo-shadow-sm);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	overflow: hidden;
}

.anfowo-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 5px;
	background: #4f46e5;
	transition: background-color 0.3s ease;
}

/* 1st Card: Indigo Theme */
.anfowo-grid .anfowo-card:nth-child(6n+1)::before,
.anfowo-card:nth-child(6n+1)::before {
	background: #4f46e5;
}
.anfowo-grid .anfowo-card:nth-child(6n+1),
.anfowo-card:nth-child(6n+1) {
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, #ffffff 55%) !important;
}
.anfowo-grid .anfowo-card:nth-child(6n+1):hover::before,
.anfowo-card:nth-child(6n+1):hover::before {
	background: #4338ca;
}
.anfowo-grid .anfowo-card:nth-child(6n+1):hover,
.anfowo-card:nth-child(6n+1):hover {
	border-color: rgba(79, 70, 229, 0.5);
	box-shadow: 0 14px 28px -4px rgba(79, 70, 229, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

/* 2nd Card: Emerald Theme */
.anfowo-grid .anfowo-card:nth-child(6n+2)::before,
.anfowo-card:nth-child(6n+2)::before {
	background: #10b981;
}
.anfowo-grid .anfowo-card:nth-child(6n+2),
.anfowo-card:nth-child(6n+2) {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 55%) !important;
}
.anfowo-grid .anfowo-card:nth-child(6n+2):hover::before,
.anfowo-card:nth-child(6n+2):hover::before {
	background: #059669;
}
.anfowo-grid .anfowo-card:nth-child(6n+2):hover,
.anfowo-card:nth-child(6n+2):hover {
	border-color: rgba(16, 185, 129, 0.5);
	box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

/* 3rd Card: Amber Theme */
.anfowo-grid .anfowo-card:nth-child(6n+3)::before,
.anfowo-card:nth-child(6n+3)::before {
	background: #f59e0b;
}
.anfowo-grid .anfowo-card:nth-child(6n+3),
.anfowo-card:nth-child(6n+3) {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, #ffffff 55%) !important;
}
.anfowo-grid .anfowo-card:nth-child(6n+3):hover::before,
.anfowo-card:nth-child(6n+3):hover::before {
	background: #d97706;
}
.anfowo-grid .anfowo-card:nth-child(6n+3):hover,
.anfowo-card:nth-child(6n+3):hover {
	border-color: rgba(245, 158, 11, 0.5);
	box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

/* 4th Card: Violet Theme */
.anfowo-grid .anfowo-card:nth-child(6n+4)::before,
.anfowo-card:nth-child(6n+4)::before {
	background: #8b5cf6;
}
.anfowo-grid .anfowo-card:nth-child(6n+4),
.anfowo-card:nth-child(6n+4) {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, #ffffff 55%) !important;
}
.anfowo-grid .anfowo-card:nth-child(6n+4):hover::before,
.anfowo-card:nth-child(6n+4):hover::before {
	background: #7c3aed;
}
.anfowo-grid .anfowo-card:nth-child(6n+4):hover,
.anfowo-card:nth-child(6n+4):hover {
	border-color: rgba(139, 92, 246, 0.5);
	box-shadow: 0 14px 28px -4px rgba(139, 92, 246, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

/* 5th Card: Rose Theme */
.anfowo-grid .anfowo-card:nth-child(6n+5)::before,
.anfowo-card:nth-child(6n+5)::before {
	background: #f43f5e;
}
.anfowo-grid .anfowo-card:nth-child(6n+5),
.anfowo-card:nth-child(6n+5) {
	background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, #ffffff 55%) !important;
}
.anfowo-grid .anfowo-card:nth-child(6n+5):hover::before,
.anfowo-card:nth-child(6n+5):hover::before {
	background: #e11d48;
}
.anfowo-grid .anfowo-card:nth-child(6n+5):hover,
.anfowo-card:nth-child(6n+5):hover {
	border-color: rgba(244, 63, 94, 0.5);
	box-shadow: 0 14px 28px -4px rgba(244, 63, 94, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

/* 6th Card: Cyan Theme */
.anfowo-grid .anfowo-card:nth-child(6n+6)::before,
.anfowo-card:nth-child(6n+6)::before {
	background: #0ea5e9;
}
.anfowo-grid .anfowo-card:nth-child(6n+6),
.anfowo-card:nth-child(6n+6) {
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, #ffffff 55%) !important;
}
.anfowo-grid .anfowo-card:nth-child(6n+6):hover::before,
.anfowo-card:nth-child(6n+6):hover::before {
	background: #0284c7;
}
.anfowo-grid .anfowo-card:nth-child(6n+6):hover,
.anfowo-card:nth-child(6n+6):hover {
	border-color: rgba(14, 165, 233, 0.5);
	box-shadow: 0 14px 28px -4px rgba(14, 165, 233, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

.anfowo-card:hover {
	transform: translateY(-5px);
}

.anfowo-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
	gap: 12px;
}

.anfowo-card-title {
	color: var(--anfowo-text-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	min-width: 0;
}

.anfowo-card-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.anfowo-card-value {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: var(--anfowo-text-main);
	letter-spacing: -0.02em;
	line-height: 1.3;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis;
	word-break: normal !important;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	display: block;
	position: relative;
}

/* Universal KPI Auto-Scroll Elements */
.anfowo-card-value-text,
.anfowo-scroll-inner {
	display: inline-block !important;
	white-space: nowrap !important;
	vertical-align: middle;
	transform: translateZ(0);
}

.anfowo-has-scroll {
	text-overflow: clip !important;
	overflow: hidden !important;
}

.anfowo-has-scroll > .anfowo-card-value-text,
.anfowo-has-scroll > .anfowo-scroll-inner {
	overflow: visible !important;
	text-overflow: clip !important;
}

.anfowo-card-value-text.anfowo-scrolling,
.anfowo-scroll-inner.anfowo-scrolling {
	will-change: transform;
	animation: anfowo-kpi-scroll var(--anfowo-scroll-dur, 6s) cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.anfowo-card:hover .anfowo-card-value-text.anfowo-scrolling,
.anfowo-card:hover .anfowo-scroll-inner.anfowo-scrolling {
	animation-play-state: paused;
}

@keyframes anfowo-kpi-scroll {
	0%, 20% {
		transform: translateX(0);
	}
	45%, 70% {
		transform: translateX(var(--anfowo-scroll-dist, 0));
	}
	95%, 100% {
		transform: translateX(0);
	}
}

.anfowo-card-subtitle {
	font-size: 12px;
	color: var(--anfowo-text-muted);
	margin-top: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.anfowo-card-trend {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	margin-top: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trend-up {
	color: var(--anfowo-success);
}

.trend-down {
	color: var(--anfowo-danger);
}

/* Chart Section Elite */
.anfowo-chart-section {
	padding: 0 32px 32px 32px;
}

.anfowo-chart-box {
	background: white;
	border-radius: var(--anfowo-radius-lg);
	border: 1px solid var(--anfowo-border);
	padding: 28px;
	box-shadow: var(--anfowo-shadow-sm);
	margin-bottom: 24px;
	margin-top: 30px;
}

.anfowo-chart-box h2 {
	font-size: 18px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.anfowo-chart-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.anfowo-full-chart {
	height: 350px !important;
}

.anfowo-half-chart {
	height: 260px !important;
}

/* Skeleton Loading State */
.anfowo-skeleton {
	background: #e5e7eb;
	background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
	background-size: 200% 100%;
	animation: anfowo-shimmer 1.5s infinite;
	border-radius: 4px;
}

@keyframes anfowo-shimmer {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

/* Table Design - Elite */
.anfowo-content-table {
	background: white;
	border-radius: var(--anfowo-radius-lg);
	border: 1px solid var(--anfowo-border);
	overflow: hidden;
	margin: 0 32px 32px 32px;
}

.anfowo-data-table {
	width: 100%;
	border-collapse: collapse;
}

.anfowo-data-table th {
	background: #f9fafb;
	padding: 14px 20px;
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	color: var(--anfowo-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid var(--anfowo-border);
}

.anfowo-data-table td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--anfowo-border);
	font-size: 14px;
}

.anfowo-data-table tr:last-child td {
	border-bottom: none;
}

.anfowo-data-table tr:hover {
	background: #fcfdfe;
}

/* Table Row Visibility Helpers */
.anfowo-row-hidden-page {
	display: none !important;
}

.anfowo-row-filtered-out {
	display: none !important;
}

/* Table Pagination Bar - Elite Modern Design */
.anfowo-table-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: #ffffff;
	border-top: 1px solid var(--anfowo-border);
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--anfowo-text-muted);
}

.anfowo-pagination-info {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
	color: var(--anfowo-text-muted);
	white-space: nowrap;
}

.anfowo-pagination-info strong {
	color: var(--anfowo-text-main);
	font-weight: 600;
}

.anfowo-pagination-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.anfowo-pagination-size {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--anfowo-text-muted);
}

.anfowo-page-size-select {
	padding: 5px 10px;
	border: 1px solid var(--anfowo-border);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--anfowo-text-main);
	background: #ffffff;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
}

.anfowo-page-size-select:focus,
.anfowo-page-size-select:hover {
	border-color: var(--anfowo-primary);
	box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.anfowo-pagination-buttons {
	display: flex;
	align-items: center;
	gap: 4px;
}

.anfowo-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid var(--anfowo-border);
	background: #ffffff;
	color: var(--anfowo-text-main);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	transition: all 0.15s ease;
	line-height: 1;
}

.anfowo-page-btn:hover:not(:disabled) {
	background: var(--anfowo-primary-light);
	border-color: rgba(79, 70, 229, 0.3);
	color: var(--anfowo-primary);
}

.anfowo-page-btn.active {
	background: var(--anfowo-primary);
	border-color: var(--anfowo-primary);
	color: #ffffff;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.anfowo-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: #f9fafb;
	border-color: var(--anfowo-border);
	color: var(--anfowo-text-muted);
}

.anfowo-page-btn svg {
	width: 14px;
	height: 14px;
	display: block;
}

.anfowo-page-numbers {
	display: flex;
	align-items: center;
	gap: 4px;
}

.anfowo-page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 32px;
	color: var(--anfowo-text-muted);
	font-weight: 600;
	user-select: none;
}

@media screen and (max-width: 768px) {
	.anfowo-table-pagination {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.anfowo-pagination-controls {
		justify-content: space-between;
	}
}

/* Badge System Refined */
.anfowo-badge {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.badge-completed {
	background: var(--anfowo-success-light);
	color: var(--anfowo-success);
	border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-processing {
	background: var(--anfowo-primary-light);
	color: var(--anfowo-primary);
	border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-on-hold {
	background: var(--anfowo-warning-light);
	color: var(--anfowo-warning);
	border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-cancelled,
.badge-refunded {
	background: var(--anfowo-danger-light);
	color: var(--anfowo-danger);
	border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Customer Loyalty Badges */
.badge-muses {
	background: rgba(236, 72, 153, 0.12);
	color: #db2777;
	border: 1px solid rgba(236, 72, 153, 0.25);
}

.badge-bronze {
	background: rgba(180, 83, 9, 0.12);
	color: #b45309;
	border: 1px solid rgba(180, 83, 9, 0.25);
}

.badge-silver {
	background: rgba(100, 116, 139, 0.12);
	color: #475569;
	border: 1px solid rgba(100, 116, 139, 0.25);
}

.badge-gold {
	background: rgba(234, 179, 8, 0.15);
	color: #ca8a04;
	border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-platinum {
	background: rgba(6, 182, 212, 0.12);
	color: #0891b2;
	border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-none {
	background: #f1f5f9;
	color: #94a3b8;
	border: 1px solid #e2e8f0;
}

/* Animation Overlay */
.anfowo-container {
	transition: opacity 0.3s ease;
}

.anfowo-faded {
	opacity: 0.4;
	pointer-events: none;
}

/* Orders List View Styles */
.anfowo-orders-list {
	padding: 0 32px 32px 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.anfowo-order-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #334155;
}

.anfowo-order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #f1f5f9;
}

.anfowo-order-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

.anfowo-order-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.anfowo-order-status {
	background: #cbd5e1;
	color: #334155;
	padding: 6px 16px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
}

.anfowo-status-completed {
	background: #dbeafe;
	color: #1e3a8a;
}

.anfowo-status-processing {
	background: #dcfce7;
	color: #166534;
}

.anfowo-status-on-hold {
	background: #fef9c3;
	color: #854d0e;
}

.anfowo-status-cancelled,
.anfowo-status-refunded {
	background: #fee2e2;
	color: #991b1b;
}

.anfowo-order-close {
	background: none;
	border: none;
	font-size: 20px;
	font-weight: bold;
	color: #64748b;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	border-left: 1px solid #e2e8f0;
	padding-left: 16px;
}

.anfowo-order-close:hover {
	color: #0f172a;
}

.anfowo-order-body {
	padding: 24px 20px;
}

.anfowo-order-billing h3 {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.anfowo-order-billing p {
	margin: 0 0 24px 0;
	color: #64748b;
	font-size: 15px;
}

.anfowo-order-table {
	width: 100%;
	border-collapse: collapse;
}

.anfowo-order-table th {
	text-align: left;
	padding: 12px 0;
	font-weight: 700;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
}

.anfowo-order-table th:nth-child(2),
.anfowo-order-table td:nth-child(2) {
	text-align: center;
}

.anfowo-order-table th:nth-child(3),
.anfowo-order-table td:nth-child(3) {
	text-align: right;
}

.anfowo-order-table td {
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
	color: #475569;
}

.anfowo-order-table tbody tr:last-child td {
	border-bottom: none;
}

.anfowo-product-name {
	color: #64748b;
}

.anfowo-order-footer {
	padding: 16px 20px;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	display: flex;
	justify-content: flex-end;
}

.anfowo-btn-edit {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
	padding: 8px 24px;
	border-radius: 4px;
	font-weight: 500;
	transition: background 0.2s;
}

.anfowo-btn-edit:hover,
.anfowo-btn-edit:focus {
	background: #1d4ed8;
	color: #ffffff;
}

/* Taxonomy Tab Layout and Styles */
.anfowo-taxonomy-tabs-container {
	margin: 24px 32px 0 32px;
}

.anfowo-tax-nav {
	display: inline-flex;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 8px;
	list-style: none;
	margin: 0;
	border: 1px solid var(--anfowo-border);
}

.anfowo-tax-nav-item {
	text-decoration: none;
	padding: 8px 16px;
	display: block;
	color: var(--anfowo-text-muted) !important;
	font-weight: 600;
	font-size: 13px;
	border-radius: 6px;
	transition: all 0.2s ease-in-out;
}

.anfowo-tax-nav-item:hover {
	color: var(--anfowo-text-main) !important;
	background: rgba(255, 255, 255, 0.5);
}

.anfowo-tax-nav-item.active {
	background: #ffffff;
	color: var(--anfowo-primary) !important;
	box-shadow: var(--anfowo-shadow-sm);
}

/* Taxonomy KPI Sub-Grid */
.anfowo-taxonomy-grid {
	margin-top: 0 !important;
	padding-top: 24px !important;
	padding-bottom: 0 !important;
}

/* Chart and Breakdown Wrapper */
.anfowo-taxonomy-chart-wrapper {
	display: flex;
	gap: 24px;
	align-items: stretch;
	flex-wrap: wrap;
}

.anfowo-taxonomy-chart-canvas-box {
	flex: 1 1 300px;
	max-width: 420px !important;
	margin: 0 !important;
}

.anfowo-taxonomy-breakdown {
	flex: 0 0 310px;
	min-width: 300px;
	background: #f8fafc;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px solid var(--anfowo-border);
	box-shadow: var(--anfowo-shadow-sm);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.breakdown-header {
	margin-bottom: 12px;
}

.breakdown-title {
	font-size: 11px;
	font-weight: 700;
	color: var(--anfowo-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
}

.breakdown-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.breakdown-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.breakdown-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}

.breakdown-left {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.breakdown-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.breakdown-name {
	color: var(--anfowo-text-main);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

.breakdown-count {
	color: var(--anfowo-text-main);
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.breakdown-right {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.breakdown-amount {
	color: var(--anfowo-text-muted);
	font-size: 11px;
	font-weight: 500;
}

.breakdown-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	min-width: 44px;
	text-align: center;
	display: inline-block;
}

.breakdown-progress-bg {
	background: #e2e8f0;
	height: 4px;
	border-radius: 2px;
	overflow: hidden;
}

.breakdown-progress-bar {
	height: 100%;
	border-radius: 2px;
	transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}