:root {
	--caf-bg: #f7f8fc;
	--caf-surface: #ffffff;
	--caf-border: #e5e7eb;
	--caf-text: #111827;
	--caf-muted: #6b7280;
	--caf-primary: #2563eb;
	--caf-success: #16a34a;
	--caf-warning: #f59e0b;
	--caf-danger: #dc2626;
	--caf-radius: 12px;
	--caf-shadow: none;
}

.woocommerce-account .entry-content,
.woocommerce-account .woocommerce {
	background: var(--caf-bg);
}

body.caf-affiliate-page .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation,
body.caf-affiliate-page .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-content > .caf-dashboard) > .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-content > .caf-dashboard) > .woocommerce-MyAccount-content {
	box-shadow: none !important;
}

body.caf-affiliate-page .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-content > .caf-dashboard) > .woocommerce-MyAccount-content {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	container-name: caf-content;
	container-type: inline-size;
}

body.caf-affiliate-page .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content > .caf-dashboard,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-content > .caf-dashboard) > .woocommerce-MyAccount-content > .caf-dashboard {
	padding: 0 !important;
}

@media (min-width: 768px) {
	body.caf-affiliate-page .woocommerce:has(> .woocommerce-MyAccount-navigation),
	body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-content > .caf-dashboard) {
		display: grid !important;
		grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
		grid-template-areas: "caf-nav caf-content";
		gap: 32px;
		align-items: start;
	}

	body.caf-affiliate-page .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation,
	body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-content > .caf-dashboard) > .woocommerce-MyAccount-navigation {
		grid-area: caf-nav;
		float: none !important;
		width: auto !important;
		height: auto;
	}

	body.caf-affiliate-page .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content,
	body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-content > .caf-dashboard) > .woocommerce-MyAccount-content {
		grid-area: caf-content;
		float: none !important;
		width: auto !important;
		height: auto;
		min-width: 0;
	}
}

.caf-dashboard {
	font-family: Inter, sans-serif;
	color: var(--caf-text);
	background: var(--caf-bg);
	display: grid;
	gap: 24px;
	padding: 8px 0 24px;
	width: 100%;
	min-width: 0;
}

.caf-dashboard > * {
	min-width: 0;
}

.caf-profile-card,
.caf-panel,
.caf-table-panel,
.caf-stat-card {
	background: var(--caf-surface);
	border: 1px solid var(--caf-border);
	border-radius: var(--caf-radius);
	box-shadow: var(--caf-shadow);
}

.caf-profile-card {
	padding: 24px;
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.2fr);
	gap: 24px;
	background: linear-gradient(135deg, #dff6f3 0%, #eefaf8 100%);
	border-color: #b9e3de;
}

.caf-profile-main {
	display: flex;
	align-items: center;
	gap: 18px;
}

.caf-avatar {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #b9e3de;
	color: #0f766e;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
}

.caf-profile-identity h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.08;
}

.caf-profile-identity .caf-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 8px;
}

.caf-profile-referral {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.caf-profile-referral a {
	color: #0f766e;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.caf-profile-actions {
	align-self: center;
	padding: 18px;
	border: 1px solid rgba(15, 118, 110, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
}

.caf-meta,
.caf-panel-header p {
	color: var(--caf-muted);
}

.caf-profile-actions,
.caf-grid-mini,
.caf-stats-grid,
.caf-dual-grid,
.caf-creative-grid,
.caf-admin-cards,
.caf-admin-panels {
	display: grid;
	gap: 16px;
}

.caf-grid-mini {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.caf-profile-item label,
.caf-stat-label,
.caf-status-card label,
.caf-application-form label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--caf-muted);
	margin-bottom: 8px;
}

.caf-input-wrap {
	display: flex;
	gap: 10px;
}

.caf-input-wrap input,
.caf-toolbar input,
.caf-application-form input,
.caf-application-form textarea,
.caf-application-form select,
.caf-admin-inline-form input:not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--caf-border);
	border-radius: 10px;
	background: #fff;
}

.caf-application-form textarea {
	padding: 12px;
}

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

.caf-form-full {
	grid-column: 1 / -1;
}

.caf-preference-group {
	display: grid;
	gap: 12px;
	margin-top: 4px;
}

.caf-preference-title {
	font-size: 15px;
	line-height: 1.4;
}

.caf-preference-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
}

.caf-check-option {
	display: flex !important;
	align-items: center !important;
	gap: 10px;
	min-height: 44px;
	margin: 0 !important;
	padding: 10px 12px;
	border: 1px solid var(--caf-border);
	border-radius: 10px;
	background: #fff;
	color: var(--caf-text) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.4;
	cursor: pointer;
}

.caf-check-option:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.caf-check-option input[type="checkbox"] {
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
	display: inline-block !important;
	flex: 0 0 18px !important;
	width: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	max-height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	vertical-align: middle !important;
	accent-color: var(--caf-primary);
}

.caf-check-option input[type="checkbox"]:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.2) !important;
	outline-offset: 2px;
}

.caf-status-card {
	background: #fff;
	border: 1px solid var(--caf-border);
	border-radius: 12px;
	padding: 18px;
}

.caf-muted-text {
	color: var(--caf-muted);
}

.caf-stats-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.caf-report-card {
	background: var(--caf-surface);
	border: 1px solid var(--caf-border);
	border-radius: var(--caf-radius);
	overflow: hidden;
}

.caf-report-tabs {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	padding: 0 22px;
	border-bottom: 1px solid var(--caf-border);
}

.caf-report-tabs a,
.caf-report-tabs span {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 14px;
	border-bottom: 2px solid transparent;
	color: var(--caf-muted);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.caf-report-tabs .is-active {
	border-bottom-color: #0f766e;
	color: #0f766e;
}

.caf-report-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px 4px;
}

.caf-report-toolbar > p {
	margin: 0;
	color: var(--caf-muted);
	font-weight: 600;
}

.caf-report-range {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

.caf-report-range input {
	width: 148px;
	min-height: 40px;
	padding: 7px 10px;
	border: 1px solid var(--caf-border);
	border-radius: 8px;
	background: #fff;
	color: var(--caf-text);
}

.caf-report-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 12px 24px 26px;
}

.caf-report-metric {
	position: relative;
	display: grid;
	place-items: center;
	gap: 7px;
	min-height: 116px;
	padding: 20px 16px;
	text-align: center;
}

.caf-report-metric:not(:nth-child(3n))::after {
	content: "";
	position: absolute;
	right: 0;
	top: 36%;
	width: 7px;
	height: 7px;
	border-top: 2px solid #cbd5e1;
	border-right: 2px solid #cbd5e1;
	transform: rotate(45deg);
}

.caf-report-metric strong {
	font-size: 23px;
	line-height: 1.2;
}

.caf-report-metric span {
	color: #8a94a6;
	font-size: 14px;
	font-weight: 700;
}

.caf-overview-table-panel {
	padding-top: 0;
}

.caf-panel-header.caf-compact-heading {
	justify-content: flex-start;
	gap: 12px;
	padding: 18px 0 12px;
}

.caf-compact-heading h3 {
	margin: 0;
	font-size: 20px;
}

.caf-view-all {
	color: #1f2937 !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.caf-view-all:hover,
.caf-view-all:focus {
	color: #0f766e !important;
	text-decoration: underline;
}

.caf-overview-table-panel {
	border-color: #edf0f3;
}

.caf-overview-table-panel .caf-table-wrap {
	border: 0 !important;
	border-radius: 0 !important;
}

.caf-overview-table {
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: #fff !important;
	color: #111827 !important;
}

.caf-overview-table thead th {
	position: static;
	background: #f6f7f8 !important;
	color: #1f2937 !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.caf-overview-table th,
.caf-overview-table td {
	padding: 16px 14px;
	border-top: 0 !important;
	border-right: 0 !important;
	border-bottom: 1px solid #edf0f3 !important;
	border-left: 0 !important;
	white-space: normal;
	vertical-align: middle;
}

.caf-overview-table tbody tr,
.caf-overview-table tbody tr:nth-child(odd),
.caf-overview-table tbody tr:nth-child(even) {
	background: #fff !important;
}

.caf-overview-table tbody tr:hover {
	background: #fafbfc !important;
}

.caf-overview-table tbody tr:last-child td {
	border-bottom-color: transparent !important;
}

.caf-overview-table td,
.caf-overview-table td strong {
	color: #111827 !important;
}

.caf-overview-table a,
.caf-overview-table a:visited {
	color: #374151 !important;
	text-decoration: none !important;
}

.caf-overview-table a:hover,
.caf-overview-table a:focus {
	color: #0f766e !important;
	text-decoration: underline !important;
}

.caf-overview-table tbody td {
	min-width: 110px;
}

.caf-overview-table .caf-url-cell {
	min-width: 220px;
	max-width: 360px;
	overflow-wrap: anywhere;
}

.caf-agent-stack {
	display: grid;
	gap: 2px;
	min-width: 150px;
	line-height: 1.45;
}

.caf-agent-stack strong {
	font-weight: 600;
}

.caf-conversion-icon {
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
}

.caf-conversion-icon.is-converted { color: var(--caf-success); }
.caf-conversion-icon.is-not-converted { color: var(--caf-danger); }

.caf-stat-card {
	padding: 18px;
}

.caf-stat-value {
	display: block;
	font-size: 28px;
	line-height: 1.2;
	margin-bottom: 8px;
}

.caf-stat-change {
	color: var(--caf-success);
	font-size: 13px;
	font-weight: 600;
}

.caf-chart-placeholder {
	padding: 24px;
	height: 280px;
	border-top: 1px solid var(--caf-border);
}

.caf-chart-loading {
	height: 100%;
	display: grid;
	place-items: center;
	color: var(--caf-muted);
}

.caf-custom-range {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 0 22px 14px;
}

.caf-custom-range[hidden] {
	display: none;
}

.caf-panel-header,
.caf-toolbar,
.caf-range-tabs,
.caf-subnav {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
	flex-wrap: wrap;
}

.caf-panel-header,
.caf-table-panel,
.caf-panel {
	padding: 20px 22px;
}

.caf-dashboard :where(button:not(.caf-qr-close), .button) {
	appearance: none;
	min-height: 42px;
	padding: 10px 16px !important;
	border: 1px solid var(--caf-border) !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--caf-text) !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none !important;
	text-shadow: none !important;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.caf-dashboard :where(button:not(.caf-qr-close), .button):hover,
.caf-dashboard :where(button:not(.caf-qr-close), .button):focus {
	border-color: #cbd5e1 !important;
	background: #f8fafc !important;
	color: var(--caf-text) !important;
}

.caf-dashboard :where(button:not(.caf-qr-close), .button):focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.2) !important;
	outline-offset: 2px;
}

.caf-dashboard .button-primary,
.caf-dashboard .caf-copy-link,
.caf-dashboard .caf-generate-qr,
.caf-dashboard .caf-build-link,
.caf-dashboard .caf-copy-generated,
.caf-dashboard .caf-apply-range,
.caf-dashboard .caf-report-apply {
	border-color: var(--caf-primary) !important;
	background: var(--caf-primary) !important;
	color: #fff !important;
}

.caf-dashboard .button-primary:hover,
.caf-dashboard .button-primary:focus,
.caf-dashboard .caf-copy-link:hover,
.caf-dashboard .caf-copy-link:focus,
.caf-dashboard .caf-generate-qr:hover,
.caf-dashboard .caf-generate-qr:focus,
.caf-dashboard .caf-build-link:hover,
.caf-dashboard .caf-build-link:focus,
.caf-dashboard .caf-copy-generated:hover,
.caf-dashboard .caf-copy-generated:focus,
.caf-dashboard .caf-apply-range:hover,
.caf-dashboard .caf-apply-range:focus,
.caf-dashboard .caf-report-apply:hover,
.caf-dashboard .caf-report-apply:focus {
	border-color: var(--caf-primary) !important;
	background: var(--caf-primary) !important;
	color: #fff !important;
	filter: brightness(0.94);
}

.caf-range-tabs button,
.caf-toolbar .button,
.caf-profile-item .button,
.caf-input-wrap .button {
	border-radius: 10px;
}

.caf-range-tabs button {
	padding: 10px 14px;
	border: 1px solid var(--caf-border) !important;
	background: #fff !important;
	color: var(--caf-text) !important;
}

.caf-range-tabs button:hover,
.caf-range-tabs button:focus {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
	color: var(--caf-primary) !important;
}

.caf-range-tabs .is-active,
.caf-range-tabs .is-active:hover,
.caf-range-tabs .is-active:focus {
	background: #eff6ff !important;
	border-color: #bfdbfe !important;
	color: var(--caf-primary) !important;
	filter: none;
}

.caf-subnav {
	padding: 0 4px;
	justify-content: flex-start;
	flex-wrap: wrap;
	overflow: visible;
}

.caf-subnav a {
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid var(--caf-border);
	background: #fff;
	color: var(--caf-text);
	text-decoration: none;
	white-space: nowrap;
}

.caf-subnav a.is-active {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: var(--caf-primary);
}

.caf-payout-form select,
.caf-payout-form input,
.caf-payout-form textarea {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--caf-border);
	border-radius: 10px;
	background: #fff;
}

.caf-payout-unavailable {
	display: grid;
	gap: 4px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #fde68a;
	border-radius: 10px;
	background: #fffbeb;
	color: #92400e;
}

.caf-payout-form :disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.caf-payout-form textarea {
	padding: 12px;
}

.caf-link-builder > .caf-build-link {
	margin-top: 16px !important;
}

.caf-export-form {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.caf-export-form input[type="date"] {
	max-width: 150px;
	min-height: 36px;
	border: 1px solid var(--caf-border);
	border-radius: 8px;
	padding: 6px 9px;
}

.caf-creative-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.caf-creative-card,
.caf-empty-card {
	background: #fff;
	border: 1px solid var(--caf-border);
	border-radius: 12px;
	padding: 18px;
	box-shadow: var(--caf-shadow);
}

.caf-notification-list { display: grid; gap: 10px; }
.caf-notification { display: flex; justify-content: space-between; gap: 18px; padding: 15px 16px; border: 1px solid var(--caf-border); border-radius: 10px; background: #fff; }
.caf-notification.is-unread { border-left: 4px solid var(--caf-primary); background: #f8fbff; }
.caf-notification p { margin: 5px 0 0; color: var(--caf-muted); }
.caf-notification time { color: var(--caf-muted); white-space: nowrap; font-size: 12px; }

.caf-creative-card img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 12px 0;
	border: 1px solid var(--caf-border);
}

.caf-creative-copy {
	color: var(--caf-muted);
	font-size: 14px;
	margin-bottom: 12px;
}

.caf-qr-modal {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 2147483000;
}

.caf-qr-modal[hidden] { display: none !important; }
body.caf-modal-open { overflow: hidden; }

.caf-qr-card {
	position: relative;
	background: #fff;
	width: min(360px, calc(100vw - 32px));
	padding: 66px 24px 24px;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
	text-align: center;
}

.caf-qr-card h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; }
.caf-qr-card > p { margin: 0 0 18px; color: var(--caf-muted); }

.caf-qr-output {
	display: grid;
	place-items: center;
	min-height: 236px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--caf-border);
	border-radius: 12px;
}

.caf-qr-output img,
.caf-qr-output canvas {
	width: 220px;
	height: 220px;
	max-width: 100%;
	display: block;
}

.caf-qr-actions {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.caf-qr-close,
.caf-qr-download {
	display: grid !important;
	place-items: center;
	width: 36px !important;
	min-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	background: #f8fafc !important;
	color: #111827 !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer;
	text-decoration: none !important;
}

.caf-qr-download svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.caf-qr-close { font-size: 24px !important; }
.caf-qr-close:hover,
.caf-qr-download:hover:not(.is-disabled) { background: #eef2f7 !important; }
.caf-qr-close:focus-visible,
.caf-qr-download:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.25); outline-offset: 2px; }
.caf-qr-download.is-disabled { cursor: not-allowed; opacity: 0.45; }
.caf-qr-error { color: var(--caf-danger); margin: 0; }

.caf-table-wrap {
	overflow: auto;
	max-width: 100%;
	min-width: 0;
}

.caf-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

.caf-table th,
.caf-table td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--caf-border);
	white-space: nowrap;
	text-align: left;
}

.caf-table thead th {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--caf-muted);
}

.caf-table tbody tr:hover {
	background: #fafcff;
}

.caf-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.caf-badge-approved {
	background: #ecfdf5;
	color: var(--caf-success);
}

.caf-badge-active,
.caf-badge-paid,
.caf-badge-info {
	background: #eff6ff;
	color: var(--caf-primary);
}

.caf-badge-pending {
	background: #fff7ed;
	color: var(--caf-warning);
}

.caf-badge-processing {
	background: #fff7ed;
	color: var(--caf-warning);
}

.caf-badge-warning,
.caf-badge-draft {
	background: #fff7ed;
	color: var(--caf-warning);
}

.caf-badge-cancelled,
.caf-badge-rejected,
.caf-badge-archived,
.caf-badge-error {
	background: #fef2f2;
	color: var(--caf-danger);
}

@container caf-content (max-width: 760px) {
	.caf-profile-card,
	.caf-dual-grid {
		grid-template-columns: 1fr;
	}

	.caf-report-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.caf-report-metric:not(:nth-child(3n))::after { display: none; }
	.caf-report-metric:nth-child(odd)::after {
		content: "";
		display: block;
		position: absolute;
		right: 0;
		top: 36%;
		width: 7px;
		height: 7px;
		border-top: 2px solid #cbd5e1;
		border-right: 2px solid #cbd5e1;
		transform: rotate(45deg);
	}
}

@container caf-content (max-width: 460px) {
	.caf-report-metrics {
		grid-template-columns: 1fr;
	}

	.caf-report-metric:nth-child(odd)::after { display: none; }
}

@media (max-width: 1024px) {
	.caf-profile-card,
	.caf-dual-grid {
		grid-template-columns: 1fr;
	}

	.caf-report-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.caf-report-metric:not(:nth-child(3n))::after { display: none; }
	.caf-report-metric:nth-child(odd)::after {
		content: "";
		display: block;
		position: absolute;
		right: 0;
		top: 36%;
		width: 7px;
		height: 7px;
		border-top: 2px solid #cbd5e1;
		border-right: 2px solid #cbd5e1;
		transform: rotate(45deg);
	}
}

@media (max-width: 767px) {
	.caf-grid-mini {
		grid-template-columns: 1fr;
	}

	.caf-form-grid,
	.caf-status-grid {
		grid-template-columns: 1fr;
	}

	.caf-preference-grid {
		grid-template-columns: 1fr;
	}

	.caf-profile-card,
	.caf-panel,
	.caf-table-panel,
	.caf-stat-card {
		padding: 16px;
	}

	.caf-profile-main {
		align-items: flex-start;
	}

	.caf-avatar {
		width: 56px;
		height: 56px;
		font-size: 23px;
		flex: 0 0 auto;
	}

	.caf-report-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.caf-report-range {
		justify-content: flex-start;
	}

	.caf-report-metrics {
		grid-template-columns: 1fr;
		padding: 8px 16px 20px;
	}

	.caf-report-metric {
		min-height: 92px;
		border-bottom: 1px solid #f1f5f9;
	}

	.caf-report-metric:nth-child(odd)::after { display: none; }
}
