/**
 * WordPress /dashboard/ — visual parity with valahub-app `src/app/(main)/dashboard/dashboard.css`.
 *
 * @package valahub-child
 */
@import url("vala-accounts-app.css");

/* Dashboard-only stage alignment: allow this page to use the full dark canvas width. */
.vala-template-dashboard .vala-app-shell__column,
.vala-template-dashboard .vala-main {
	width: 100%;
	max-width: none;
}

.vala-template-dashboard .vala-main__inner,
.vala-template-dashboard .vala-page-shell {
	width: 100%;
	max-width: none;
	margin: 0;
}

.vala-template-dashboard .vala-main__inner.vala-page-shell {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* Dashboard layout */
.page-shell--dashboard.dashboard-layout-stack {
	max-width: none;
	width: 100%;
	padding: clamp(14px, 1.2vw, 18px) clamp(20px, 1.9vw, 24px) clamp(22px, 1.9vw, 28px);
	gap: var(--vala-shell-gap);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: auto;
}

.page-shell--dashboard.dashboard-layout-stack::before {
	content: "";
	position: absolute;
	top: -98px;
	left: 9%;
	width: 700px;
	height: 300px;
	background: radial-gradient(circle, rgba(88, 166, 220, 0.25) 0%, rgba(88, 166, 220, 0) 74%);
	filter: blur(30px);
	pointer-events: none;
	z-index: 0;
}

.page-shell--dashboard.dashboard-layout-stack::after {
	content: "";
	position: absolute;
	right: 6%;
	top: 18px;
	width: 360px;
	height: 180px;
	background: radial-gradient(circle, rgba(4, 196, 217, 0.18) 0%, rgba(4, 196, 217, 0) 72%);
	filter: blur(32px);
	pointer-events: none;
	z-index: 0;
}

.page-shell--dashboard.dashboard-layout-stack > * {
	position: relative;
	z-index: 1;
}

.page-shell--dashboard.dashboard-layout-stack,
.page-shell--dashboard .dashboard-scroll-content,
.page-shell--dashboard .dashboard-section {
	background: transparent !important;
}

.page-shell--dashboard .dashboard-scroll-content {
	padding-bottom: 0;
	flex: 1;
	min-height: 0;
	overflow: visible;
	width: 100%;
	max-width: none;
	margin: 0;
}

.page-shell--dashboard .dashboard-hero-sticky-wrap,
.page-shell--dashboard .dashboard-scroll-content > section.dashboard-section {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.dashboard-layout-stack .card {
	border-radius: var(--vala-radius-md);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(148, 163, 184, 0.04) inset;
}

/* Hero */
.dashboard-hero-sticky-wrap {
	position: static;
}

.dashboard-layout-stack .dashboard-hero {
	min-height: var(--vala-hero-min-height);
	width: 100%;
	padding: var(--vala-hero-padding);
	border-radius: var(--vala-radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 24px 74px rgba(3, 37, 140, 0.36), 0 0 36px rgba(4, 196, 217, 0.16);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
		linear-gradient(135deg, #03258c 0%, #034aa6 42%, #04c4d9 100%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--vala-shell-gap);
	align-items: start;
	height: 100%;
}

.hero-col {
	min-width: 0;
}

.hero-col + .hero-col {
	border-left: 1px solid rgba(255, 255, 255, 0.22);
	padding-left: clamp(12px, 1.2vw, 18px);
}

.hero-label {
	margin: 0 0 10px;
	font-size: var(--vala-text-base);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
}

.hero-value {
	margin: 0;
	font-size: var(--vala-kpi-size);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.hero-value.hero-value--native {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
}

.hero-native-assets {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 2px;
}

.hero-native-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.hero-native-code {
	font-size: var(--vala-text-sm);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.76);
	flex-shrink: 0;
	min-width: 3em;
}

.hero-native-amt {
	font-size: clamp(18px, 1.45vw, 26px);
	font-weight: 800;
	color: #ffffff;
	text-align: right;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.hero-native-row--other .hero-native-code {
	color: rgba(255, 255, 255, 0.7);
}

.hero-native-converted {
	margin: 10px 0 0;
	font-size: var(--vala-text-sm);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.68);
	max-width: 440px;
}

.hero-native-converted--total {
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.88);
}

.hero-native-converted--hint {
	margin-top: 4px;
	font-size: var(--vala-text-sm);
	color: rgba(255, 255, 255, 0.62);
}

.hero-native-converted--warn {
	color: #fecaca;
}

.hero-subtext {
	margin: 10px 0 0;
	font-size: var(--vala-text-base);
	color: rgba(255, 255, 255, 0.74);
}

.hero-subtext--balance {
	font-size: clamp(22px, 1.9vw, 30px);
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
}

.hero-note {
	margin: 8px 0 0;
	font-size: var(--vala-text-sm);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.7);
	max-width: 440px;
}

.hero-status-title {
	margin: 0;
	font-size: var(--vala-text-base);
	font-weight: 700;
	color: #ffffff;
}

.hero-next-event {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hero-next-main {
	margin: 0;
	font-size: var(--vala-title-sm);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.28;
}

.hero-next-sub {
	margin: 0;
	font-size: var(--vala-text-base);
	color: rgba(255, 255, 255, 0.7);
}

.hero-next-link {
	font-size: var(--vala-text-base);
	color: rgba(255, 255, 255, 0.84);
	text-decoration: none;
}

.hero-next-date {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(186, 230, 253, 0.92);
}

.hero-next-amount {
	margin: 4px 0 0;
	font-size: 17px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #ffffff;
}

.hero-next-status {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
}

.hero-next-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 6px;
}

.hero-next-link--detail {
	font-weight: 700;
}

.hero-next-link--calendar {
	font-weight: 600;
	opacity: 0.9;
}

.hero-monthly-mini {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hero-monthly-mini-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.78);
}

.hero-monthly-mini-row strong {
	color: #ffffff;
	font-weight: 700;
}

.hero-native-converted--try {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Empty onboarding */
.dashboard-layout-stack .onboarding-card {
	margin-top: 8px;
	min-height: 0;
	padding: 18px 20px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.58);
	box-shadow: 0 16px 44px rgba(3, 37, 140, 0.13);
}

.dashboard-layout-stack .onboarding-card h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: #101828;
}

.dashboard-layout-stack .onboarding-card .card-subtext {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #667085;
}

.dashboard-layout-stack .onboarding-card-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.dashboard-layout-stack .onboarding-card-actions .vala-button {
	height: 40px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 800;
}

/* Quick actions */
.dashboard-quick-actions-card {
	padding: clamp(12px, 1.1vw, 14px) clamp(14px, 1.35vw, 18px);
	border-radius: var(--vala-radius-md);
	background: linear-gradient(150deg, rgba(15, 29, 52, 0.88), rgba(19, 37, 62, 0.84));
	border: 1px solid rgba(165, 206, 244, 0.22);
	box-shadow: 0 14px 30px rgba(3, 37, 140, 0.18), inset 0 1px 0 rgba(219, 234, 254, 0.1);
	min-height: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.dashboard-quick-actions-head {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	white-space: nowrap;
	flex: 0 0 auto;
	line-height: 1.2;
	padding-top: 0;
}

.dashboard-quick-actions-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
	flex: 1;
	min-width: 0;
}

.dashboard-quick-action-btn.vala-button {
	min-height: 34px;
	padding: 0 12px;
	font-size: var(--vala-text-sm);
	font-weight: 700;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.42);
	border-color: rgba(148, 188, 238, 0.26);
	color: rgba(233, 244, 255, 0.95);
}

.dashboard-quick-action-btn.vala-button:hover {
	background: rgba(30, 58, 95, 0.52);
	border-color: rgba(103, 225, 236, 0.35);
	color: #f6fbff;
}

.dashboard-quick-unified-card {
	padding: 12px 12px 10px;
	border-radius: var(--vala-radius-md);
	background: linear-gradient(135deg, #e8eef5 0%, #dbe6ef 100%);
	border: 1px solid rgba(148, 163, 184, 0.55);
	box-shadow: 0 18px 36px rgba(2, 8, 23, 0.16);
	color: #0f172a;
}

section.card.dashboard-section.dashboard-quick-unified-card {
	background: linear-gradient(135deg, rgba(15, 50, 92, 0.82), rgba(14, 97, 126, 0.58)) !important;
	background-image: linear-gradient(135deg, rgba(15, 50, 92, 0.82), rgba(14, 97, 126, 0.58)) !important;
	color: rgba(255, 255, 255, 0.92) !important;
	border: 1px solid rgba(125, 211, 252, 0.22) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 34px rgba(2, 8, 23, 0.18) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	isolation: isolate;
}

section.dashboard-quick-unified-card::before,
section.dashboard-quick-unified-card::after {
	content: none !important;
	display: none !important;
}

.dashboard-quick-unified-card .dashboard-quick-unified-grid {
	background: transparent !important;
}

.dashboard-quick-unified-card .dashboard-quick-actions-head,
.dashboard-quick-unified-card h2,
.dashboard-quick-unified-card h3 {
	color: rgba(255, 255, 255, 0.92) !important;
}

.dashboard-quick-unified-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.dashboard-quick-action-card {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 2px;
	align-items: center;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.16);
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.16);
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-quick-action-card:hover {
	transform: translateY(-1px);
	border-color: rgba(186, 230, 253, 0.52);
	box-shadow: 0 12px 26px rgba(3, 37, 140, 0.24);
}

.dashboard-quick-action-card--standard {
	padding: 10px 11px;
	min-height: 60px;
}

.dashboard-quick-action-card--detail {
	padding: 10px 11px;
	min-height: 74px;
	grid-column: 1;
	grid-row: 1 / span 2;
	background: linear-gradient(145deg, rgba(14, 116, 184, 0.76), rgba(8, 145, 178, 0.66), rgba(6, 182, 212, 0.56));
	border-color: rgba(103, 232, 249, 0.44);
	box-shadow: 0 14px 28px rgba(3, 37, 140, 0.26);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	align-self: stretch;
	margin-top: 0;
}

.dashboard-quick-action-card__icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.22);
	color: #eaf6ff;
	grid-row: 1 / span 2;
	grid-column: 1;
}

.dashboard-quick-action-card--detail .dashboard-quick-action-card__icon {
	width: 34px;
	height: 34px;
	font-size: 18px;
	grid-row: auto;
	grid-column: auto;
}

.dashboard-quick-action-card--detail .dashboard-quick-action-card__title,
.dashboard-quick-action-card--detail .dashboard-quick-action-card__sub {
	grid-column: auto;
	grid-row: auto;
}

.dashboard-quick-action-card__title {
	font-size: 13px;
	font-weight: 850;
	color: #ffffff;
	line-height: 1.2;
	grid-column: 2;
	grid-row: 1;
}

.dashboard-quick-action-card__sub {
	font-size: 10px;
	color: rgba(236, 246, 255, 0.88);
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	grid-column: 2;
	grid-row: 2;
}

.dashboard-quick-action-card--expense { background: linear-gradient(145deg, rgba(254, 226, 226, 0.94), rgba(254, 242, 242, 0.9)); }
.dashboard-quick-action-card--income { background: linear-gradient(145deg, rgba(220, 252, 231, 0.94), rgba(240, 253, 244, 0.9)); }
.dashboard-quick-action-card--debt { background: linear-gradient(145deg, rgba(255, 237, 213, 0.94), rgba(255, 247, 237, 0.9)); }
.dashboard-quick-action-card--receivable { background: linear-gradient(145deg, rgba(209, 250, 229, 0.94), rgba(236, 253, 245, 0.9)); }
.dashboard-quick-action-card--transfer { background: linear-gradient(145deg, rgba(219, 234, 254, 0.94), rgba(239, 246, 255, 0.9)); }
.dashboard-quick-action-card--account { background: linear-gradient(145deg, rgba(224, 231, 255, 0.94), rgba(238, 242, 255, 0.9)); }
.dashboard-quick-action-card--wallet { background: linear-gradient(145deg, rgba(243, 232, 255, 0.94), rgba(250, 245, 255, 0.9)); }
.dashboard-quick-action-card--calendar { background: linear-gradient(145deg, rgba(207, 250, 254, 0.94), rgba(236, 254, 255, 0.9)); }
.dashboard-quick-action-card--expense { background: linear-gradient(145deg, rgba(117, 55, 83, 0.72), rgba(143, 64, 99, 0.58)); }
.dashboard-quick-action-card--income { background: linear-gradient(145deg, rgba(12, 113, 91, 0.72), rgba(15, 136, 111, 0.58)); }
.dashboard-quick-action-card--debt { background: linear-gradient(145deg, rgba(102, 78, 55, 0.72), rgba(124, 95, 66, 0.58)); }
.dashboard-quick-action-card--receivable { background: linear-gradient(145deg, rgba(12, 119, 130, 0.72), rgba(16, 139, 150, 0.58)); }
.dashboard-quick-action-card--transfer { background: linear-gradient(145deg, rgba(28, 89, 155, 0.72), rgba(34, 106, 176, 0.58)); }
.dashboard-quick-action-card--account { background: linear-gradient(145deg, rgba(30, 73, 135, 0.72), rgba(36, 88, 157, 0.58)); }
.dashboard-quick-action-card--wallet { background: linear-gradient(145deg, rgba(76, 67, 142, 0.72), rgba(93, 81, 165, 0.58)); }
.dashboard-quick-action-card--calendar { background: linear-gradient(145deg, rgba(15, 119, 148, 0.72), rgba(18, 140, 168, 0.58)); }

/* Keep row-2 first column empty under detail CTA. */
.dashboard-quick-action-card--account { grid-column: 2; }
.dashboard-quick-action-card--wallet { grid-column: 3; }
.dashboard-quick-action-card--transfer { grid-column: 4; }
.dashboard-quick-action-card--calendar { grid-column: 5; }
.dashboard-quick-action-card--detail:hover {
	border-color: rgba(14, 165, 233, 0.54);
	box-shadow: 0 14px 28px rgba(3, 37, 140, 0.24);
}

.dashboard-quick-action-card--detail .dashboard-quick-action-card__title {
	color: #ffffff;
}

.dashboard-quick-action-card--detail .dashboard-quick-action-card__sub {
	color: rgba(236, 246, 255, 0.9);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: normal;
}

/* Detailed quick actions block (parity with records page). */
.vala-template-dashboard .dashboard-quick-detailed-section.records-quick-section {
	padding: 12px 14px;
	border-radius: var(--vala-radius-md);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.58);
	box-shadow: 0 18px 46px rgba(3, 37, 140, 0.16);
}

.vala-template-dashboard .records-quick-split {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	min-width: 0;
}

.vala-template-dashboard .records-quick-main {
	flex: 7 1 0;
	min-width: 0;
}

.vala-template-dashboard .records-quick-heading {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
	color: #101828;
}

.vala-template-dashboard .records-quick-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
}

.vala-template-dashboard .records-quick-grid--compact .records-quick-tile {
	padding: 6px 4px;
	gap: 3px;
}

.vala-template-dashboard .records-quick-tile {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: rgba(255, 255, 255, 0.84);
}

.vala-template-dashboard .records-quick-icon {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 900;
}

.vala-template-dashboard .records-quick-title {
	font-size: 11px;
	font-weight: 700;
	color: #101828;
}

.vala-template-dashboard .records-quick-sub {
	font-size: 9px;
	color: #667085;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.vala-template-dashboard .records-quick-tile--expense .records-quick-icon { background: rgba(220, 38, 38, 0.18); color: #b42318; }
.vala-template-dashboard .records-quick-tile--income .records-quick-icon { background: rgba(22, 163, 74, 0.2); color: #166534; }
.vala-template-dashboard .records-quick-tile--debt .records-quick-icon { background: rgba(185, 28, 28, 0.2); color: #991b1b; }
.vala-template-dashboard .records-quick-tile--receivable .records-quick-icon { background: rgba(5, 150, 105, 0.2); color: #166534; }
.vala-template-dashboard .records-quick-tile--transfer .records-quick-icon { background: rgba(79, 70, 229, 0.2); color: #3730a3; }

.vala-template-dashboard .records-detail-promo {
	flex: 3 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 14px 16px;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(3, 74, 166, 0.28);
	background: linear-gradient(145deg, rgba(3, 74, 166, 0.14), rgba(3, 74, 166, 0.06));
}

.vala-template-dashboard .records-detail-promo__title {
	font-size: 15px;
	font-weight: 800;
	color: #034aa6;
}

.vala-template-dashboard .records-detail-promo__sub {
	font-size: 11px;
	font-weight: 600;
	color: #475467;
}

/* KPI row */
.dashboard-kpi-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--vala-shell-gap);
	margin-top: 12px;
	width: 100%;
	max-width: none;
}

.dashboard-layout-stack .dashboard-kpi-card {
	min-height: clamp(104px, 8.6vw, 112px);
	border-radius: var(--vala-radius-md);
	padding: clamp(10px, 0.95vw, 14px) clamp(14px, 1.15vw, 18px);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88));
	border: 1px solid rgba(255, 255, 255, 0.72);
	box-shadow: 0 16px 34px rgba(3, 37, 140, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	overflow: hidden;
}

.dashboard-kpi-row .dashboard-kpi-card:nth-child(1) {
	background: linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(255, 255, 255, 0.88));
	border-color: rgba(16, 185, 129, 0.2);
}

.dashboard-kpi-row .dashboard-kpi-card:nth-child(2) {
	background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.88));
	border-color: rgba(59, 130, 246, 0.2);
}

.dashboard-kpi-row .dashboard-kpi-card:nth-child(3) {
	background: linear-gradient(135deg, rgba(236, 254, 255, 0.94), rgba(255, 255, 255, 0.88));
	border-color: rgba(6, 182, 212, 0.2);
}

.dashboard-kpi-label-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.dashboard-kpi-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	flex-shrink: 0;
}

.dashboard-kpi-dot-income {
	background: #04bf55;
}

.dashboard-kpi-dot-expense {
	background: #034aa6;
}

.dashboard-kpi-dot-balance {
	background: #04c4d9;
}

.dashboard-kpi-label {
	font-size: var(--vala-text-sm);
	font-weight: 650;
	color: #526076;
	min-width: 0;
}

.dashboard-kpi-value {
	margin: 3px 0 0;
	font-size: clamp(23px, 1.52vw, 30px);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.14;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dashboard-kpi-subtext {
	margin: 3px 0 0;
	font-size: var(--vala-text-sm);
	color: #5f6f85;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kpi-empty {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 6px;
}

.kpi-empty-text {
	font-size: 14px;
	color: #667085;
}

.kpi-empty-subtext {
	font-size: 13px;
	color: #98a2b3;
}

/* Bottom grid */
.dashboard-layout-stack .upcoming-events-section {
	display: grid;
	grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
	gap: var(--vala-shell-gap);
	margin-top: 16px;
	align-items: start;
	width: 100%;
	max-width: none;
}

.dashboard-layout-stack .upcoming-events-section > * {
	min-width: 0;
}

.dashboard-layout-stack .dashboard-upcoming-card {
	min-height: 0;
	align-self: start;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--vala-radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.58);
	box-shadow: 0 18px 46px rgba(3, 37, 140, 0.16);
	padding: var(--vala-card-padding) clamp(16px, 1.4vw, 24px);
}

.dashboard-layout-stack .dashboard-suggestion-card {
	min-height: 0;
	align-self: start;
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--vala-radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.58);
	box-shadow: 0 18px 48px rgba(3, 37, 140, 0.17), 0 0 22px rgba(52, 211, 153, 0.08);
	padding: var(--vala-card-padding) clamp(16px, 1.4vw, 24px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.9));
}

/* Workspace FA maturity (deriveUxUserStageFromFinancePayload): calmer early → clearer active/advanced */
.dashboard-layout-stack .dashboard-suggestion-card.dashboard-suggestion-card--fa-maturity-early {
	box-shadow: 0 10px 28px rgba(3, 37, 140, 0.09);
	border-color: rgba(148, 163, 184, 0.35);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(248, 250, 252, 0.9));
}

.dashboard-layout-stack .dashboard-suggestion-card.dashboard-suggestion-card--fa-maturity-active {
	box-shadow: 0 14px 38px rgba(3, 37, 140, 0.13), 0 0 14px rgba(3, 74, 166, 0.06);
	border-color: rgba(3, 74, 166, 0.14);
}

.dashboard-layout-stack .dashboard-suggestion-card.dashboard-suggestion-card--fa-maturity-advanced {
	box-shadow: 0 12px 34px rgba(3, 37, 140, 0.11);
	border-color: rgba(3, 74, 166, 0.16);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.93));
}

.dashboard-upcoming-card:has(.dashboard-empty-events) {
	min-height: 200px;
}

/* Upcoming events */
.dashboard-upcoming-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.dashboard-upcoming-header h3 {
	margin: 0;
	font-size: var(--vala-title-sm);
	font-weight: 700;
	color: #101828;
}

.dashboard-calendar-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 39px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid rgba(3, 74, 166, 0.18);
	background: linear-gradient(180deg, #ffffff, rgba(243, 248, 255, 0.94));
	color: #034aa6;
	text-decoration: none;
	font-weight: 700;
	font-size: var(--vala-text-sm);
	box-shadow: 0 8px 18px rgba(3, 74, 166, 0.08);
}

.dashboard-calendar-link-icon {
	font-size: 14px;
	line-height: 1;
}

.upcoming-events-list {
	display: flex;
	flex-direction: column;
}

.financial-event-item {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr) auto minmax(120px, auto);
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.financial-event-item:last-child {
	border-bottom: 0;
}

.financial-event-date {
	font-size: 13px;
	font-weight: 800;
	color: #034aa6;
}

.financial-event-content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.financial-event-title {
	font-size: var(--vala-text-base);
	font-weight: 700;
	color: #101828;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.financial-event-subtitle {
	font-size: var(--vala-text-sm);
	color: #667085;
}

.financial-event-account {
	font-size: clamp(11px, 0.62vw, 12px);
	color: #64748b;
}

.financial-event-actions-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
}

.financial-event-amount {
	font-size: var(--vala-text-base);
	font-weight: 800;
	white-space: nowrap;
}

.financial-event-amount-wrap {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.financial-event-actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.financial-event-action-icon {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	border: 1px solid rgba(3, 74, 166, 0.2);
	background: rgba(255, 255, 255, 0.82);
	color: #034aa6;
	text-decoration: none;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(3, 74, 166, 0.1);
}

.financial-event-action-icon:hover {
	background: rgba(240, 247, 255, 0.98);
	border-color: rgba(3, 74, 166, 0.32);
}

.financial-event-action-icon:focus-visible {
	outline: 2px solid rgba(3, 74, 166, 0.45);
	outline-offset: 1px;
}

.financial-event-amount-positive {
	color: #04bf55;
}

.financial-event-amount-negative {
	color: #b42318;
}

.dashboard-empty-events {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	flex: 1;
	min-height: 0;
}

.dashboard-empty-events-icon {
	width: 50px;
	height: 50px;
	border-radius: 999px;
	background: rgba(4, 196, 217, 0.1);
	color: #04c4d9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	margin-bottom: 12px;
}

.dashboard-empty-events-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #344054;
}

.dashboard-empty-events-subtitle {
	margin: 6px 0 0;
	font-size: 13px;
	color: #667085;
	max-width: 360px;
	line-height: 1.45;
}

/* Suggestion card */
.dashboard-suggestion-kicker {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	font-size: clamp(18px, 1.12vw, 22px);
	font-weight: 800;
	color: #0f3c91;
	letter-spacing: 0.01em;
}

.dashboard-suggestion-main {
	margin: 4px 0 0;
	font-size: var(--vala-text-base);
	font-weight: 650;
	color: #101828;
	line-height: 1.4;
}

.dashboard-suggestion-sub {
	margin: 2px 0 0;
	font-size: var(--vala-text-sm);
	line-height: 1.45;
	color: #526076;
}

.dashboard-suggestion-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 9px;
	margin-top: 12px;
}

.dashboard-suggestion-secondary.vala-button {
	height: 41px;
	border-radius: 14px;
	font-weight: 700;
	font-size: 14px;
}

.page-shell--dashboard .notice.small.dashboard-section {
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(59, 130, 246, 0.1);
	color: #1e40af;
	border: 1px solid rgba(59, 130, 246, 0.2);
	font-size: 14px;
	line-height: 1.45;
}

.page-shell--dashboard.dashboard-layout-stack--populated {
	gap: 16px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-scroll-content > section .card {
	padding: 18px 20px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-scroll-content section.dashboard-section {
	margin-top: 10px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-scroll-content section.dashboard-section:first-of-type {
	margin-top: 0;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-scroll-content section.grid.dashboard-kpi-row.dashboard-section {
	margin-top: 10px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-scroll-content section.grid.two-col.dashboard-section {
	margin-top: 10px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-scroll-content section.grid.two-col > .card {
	min-height: 0;
	align-self: start;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-hero {
	min-height: var(--vala-hero-min-height);
	padding: var(--vala-hero-padding);
}

.page-shell--dashboard.dashboard-layout-stack--populated .hero-value.hero-value--native .hero-native-amt {
	font-size: clamp(19px, 1.55vw, 30px);
}

.page-shell--dashboard.dashboard-layout-stack--populated .hero-note {
	display: block;
	max-width: 380px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .hero-next-main {
	font-size: var(--vala-title-sm);
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-kpi-row {
	margin-top: 10px;
	gap: 14px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-quick-actions-card {
	padding: clamp(12px, 1.1vw, 14px) clamp(14px, 1.35vw, 18px);
	display: flex;
	align-items: center;
	gap: 12px;
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-kpi-card {
	padding: clamp(10px, 0.95vw, 14px) clamp(14px, 1.15vw, 18px);
}

.page-shell--dashboard.dashboard-layout-stack--populated .dashboard-kpi-value {
	font-size: clamp(23px, 1.52vw, 30px);
}

.demo-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.demo-notice span {
	flex: 1;
	min-width: 0;
}

.vala-dashboard-wp-root--error .vala-dashboard-wp-error {
	margin: 0;
	padding: 1rem 1.25rem;
	border-radius: 16px;
	background: rgba(254, 226, 226, 0.95);
	border: 1px solid rgba(248, 113, 113, 0.45);
	color: #991b1b;
	font-size: 0.95rem;
	line-height: 1.45;
}

.vala-dashboard-wp-root--error .vala-dashboard-wp-error a {
	color: #1e40af;
	font-weight: 700;
}

@media (max-width: 900px) {
	.vala-template-dashboard .vala-main__inner.vala-page-shell {
		padding-left: 0;
		padding-right: 0;
	}

	.page-shell--dashboard.dashboard-layout-stack {
		padding: clamp(14px, 3.2vw, 16px) clamp(14px, 3.2vw, 16px) 22px;
	}

	.page-shell--dashboard.dashboard-layout-stack::before {
		left: 5%;
		width: 96%;
		height: 250px;
	}

	.dashboard-layout-stack .dashboard-hero {
		height: auto;
	}

	.hero-native-amt {
		font-size: clamp(16px, 4.2vw, 22px);
	}

	.hero-grid,
	.dashboard-kpi-row,
	.dashboard-layout-stack .upcoming-events-section {
		grid-template-columns: 1fr;
	}

	.hero-col + .hero-col {
		border-left: 0;
		padding-left: 0;
		padding-top: 12px;
		border-top: 1px solid rgba(255, 255, 255, 0.22);
	}

	.dashboard-quick-actions-card {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.dashboard-quick-actions-row {
		flex-wrap: wrap;
	}

	.dashboard-quick-unified-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-quick-action-card--detail {
		grid-column: auto;
		grid-row: auto;
		order: -1;
	}

	.vala-template-dashboard .records-quick-split {
		flex-direction: column;
	}

	.vala-template-dashboard .records-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.financial-event-item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
	}

	.financial-event-actions-wrap {
		grid-column: 1 / -1;
		justify-content: flex-start;
		margin-left: 72px;
	}

	.financial-event-amount-wrap {
		grid-column: 1 / -1;
		justify-content: flex-start;
		margin-left: 72px;
	}

	.financial-event-actions {
		justify-content: flex-start;
	}
}

/* Guided onboarding: optional card step (localStorage vala_onboarding_skip_card_step) */
.vala-template-dashboard .vala-dashboard-card-step-decision {
	margin-top: clamp(12px, 1.4vw, 18px);
	padding: clamp(12px, 1.15vw, 16px) clamp(14px, 1.35vw, 18px);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(15, 50, 92, 0.58), rgba(14, 97, 126, 0.34));
	border: 1px solid rgba(125, 211, 252, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px rgba(2, 8, 23, 0.18);
}

.vala-template-dashboard .vala-dashboard-card-step-decision__ask {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.45;
	color: rgba(248, 250, 252, 0.96);
}

.vala-template-dashboard .vala-dashboard-card-step-decision__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.vala-template-dashboard .vala-dashboard-card-step-decision__actions .vala-button {
	min-height: 40px;
}
