

/* ============================================
   DASHBOARD PAGE — pixel-perfect from Figma 599:4238
   ============================================ */
.dashboard-page {
	background-color: var(--white-color);
}
.dashboard-section {
	padding: 32px 0 56px;
}
.dashboard-wrap {
	max-width: 1130px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Welcome heading — sits at left of wrap */
.dashboard-welcome {
	margin-bottom: 24px;
}
.dashboard-welcome__label {
	margin: 0;
	font-family: var(--header-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.0762px;
	color: #939393;
}
.dashboard-welcome__name {
	margin: 0;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 26px;
	line-height: 40px;
	letter-spacing: 0.0703px;
	color: #000000;
}

/* Cards stack — 722px column centered within the wrap */
.dashboard-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 722px;
	margin: 0 auto;
}
.dashboard-card {
	background-color: var(--white-color);
	border: 1px solid #939393;
	border-radius: 16px;
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.dashboard-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 24px;
}
.dashboard-card__label {
	margin: 0;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.5645px;
	color: #333333;
	text-transform: uppercase;
}
.dashboard-card__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}
.dashboard-card__foot--center {
	justify-content: center;
}
.dashboard-card__foot--block {
	display: block;
	margin-top: 16px;
}
.dashboard-card__foot--block .dashboard-btn {
	width: 100%;
}

/* Empty state message (No planned) */
.dashboard-empty {
	margin: 16px 0;
	text-align: center;
	font-family: var(--header-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #333333;
}

/* Rich empty state — Today's Meal "no planned" card */
.dashboard-meal-empty {
	text-align: center;
	padding: 12px 8px 4px;
}
.dashboard-meal-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background-color: #EAF4F0;
	margin: 8px auto 16px;
}
.dashboard-meal-empty__icon i {
	font-size: 22px;
	color: var(--green-color);
}
.dashboard-meal-empty__title {
	margin: 0 0 8px;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 18px;
	line-height: 24px;
	color: #333333;
}
.dashboard-meal-empty__text {
	margin: 0 0 8px;
	font-family: var(--header-font);
	font-weight: 400;
	font-size: 15px;
	line-height: 22px;
	color: #555555;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}

/* Status badges (24px tall pill-rect) */
.dashboard-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 24px;
	padding: 0 8px;
	border-radius: 4px;
	background-color: #eaf4f0;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	color: var(--green-color);
	white-space: nowrap;
}
.dashboard-status--planned,
.dashboard-status--completed,
.dashboard-status--generated {
	background-color: #eaf4f0;
	color: var(--green-color);
}
.dashboard-status--completed i {
	font-size: 12px;
}
.dashboard-status--auto {
	background-color: #eaf4f0;
	color: #000000;
	font-weight: 400;
}
.dashboard-status--alert {
	background-color: #FDEDEC;
	color: #C0392B;
	font-weight: 700;
}
.dashboard-status--full {
	background-color: var(--green-color);
	color: var(--white-color);
	font-weight: 700;
}
.dashboard-status--no-planned {
	background-color: #EEEEEE;
	color: #555555;
	font-weight: 400;
}
.dashboard-status--in-progress,
.dashboard-status--partial {
	background-color: #FFF4D6;
	color: #7B5800;
	font-weight: 700;
}

/* Health Plan panel (collapsible) */
.health-plan {
	border: 1px solid #939393;
	border-radius: 12px;
	padding: 12px 16px;
	margin-top: 12px;
	font-family: var(--header-font);
	transition: padding 0.3s ease;
}
.health-plan__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	overflow: hidden;
	max-height: 200px;
	opacity: 1;
	transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}
.health-plan[aria-expanded="true"] .health-plan__summary {
	max-height: 0;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}
.health-plan__summary-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.health-plan__title {
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #333333;
}
.health-plan__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.health-plan__chip i {
	color: var(--green-color);
	font-size: 16px;
}
.health-plan__dot {
	color: #939393;
	font-size: 16px;
	line-height: 1;
}
.health-plan__subtitle {
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #555555;
	letter-spacing: -0.0762px;
}
.health-plan__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--green-color);
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}
.health-plan__toggle:hover,
.health-plan__toggle:focus {
	color: #0e6244;
	outline: none;
}
.health-plan__toggle-text[data-text-expanded] {
	display: none;
}
.health-plan[aria-expanded="true"] .health-plan__toggle-text[data-text-collapsed] {
	display: none;
}
.health-plan[aria-expanded="true"] .health-plan__toggle-text[data-text-expanded] {
	display: inline;
}
.health-plan__chevron {
	display: inline-block;
	width: 12px;
	height: 6px;
	background-color: var(--green-color);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transition: transform 0.3s ease;
}
.health-plan[aria-expanded="true"] .health-plan__chevron {
	transform: rotate(180deg);
}
.health-plan__toggle--inline {
	align-self: flex-end;
}
/* Slide-up/down details using grid-template-rows trick */
.health-plan__details {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
	opacity: 0;
	pointer-events: none;
}
.health-plan[aria-expanded="true"] .health-plan__details {
	grid-template-rows: 1fr;
	opacity: 1;
	pointer-events: auto;
}
.health-plan__details-inner {
	overflow: hidden;
	min-height: 0;
}
.health-plan__section {
	padding: 12px 0;
	border-bottom: 1px solid #E5E5E5;
}
.health-plan__section:first-child {
	padding-top: 0;
}
.health-plan__section-title {
	margin: 0 0 6px;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #333333;
}
.health-plan__section-title i {
	color: var(--green-color);
	font-size: 16px;
}
.health-plan__section-text {
	margin: 0 0 6px;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #333333;
	letter-spacing: -0.0762px;
}
.health-plan__section-text--muted {
	color: #939393;
}
.health-plan__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--green-color);
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
}
.health-plan__link:hover,
.health-plan__link:focus {
	color: #0e6244;
	text-decoration: underline;
}
.health-plan__link i {
	font-size: 12px;
	transition: transform 0.2s ease;
}
.health-plan__link:hover i {
	transform: translateX(2px);
}
.health-plan__details-foot {
	display: flex;
	justify-content: flex-end;
	padding-top: 12px;
}

/* Meals list */
.dashboard-meals {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}
.dashboard-meal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #939393;
}
.dashboard-meal:last-child {
	border-bottom: none;
}
.dashboard-meal__info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	letter-spacing: 0.1172px;
}
.dashboard-meal__type {
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	color: #939393;
	flex-shrink: 0;
}
.dashboard-meal__name {
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #333333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dashboard-meal__dot {
	width: 12px;
	height: 12px;
	border-radius: 12px;
	background-color: var(--green-color);
	flex-shrink: 0;
}

/* Empty meal slot — partial state */
.dashboard-meal--empty .dashboard-meal__name,
.dashboard-meal__name--empty {
	font-style: italic;
	font-weight: 400;
	color: #939393;
}
.dashboard-meal__dot--empty {
	background-color: transparent;
	border: 2px solid #939393;
	box-sizing: border-box;
}

/* Movement list */
.dashboard-movements {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}
.dashboard-movement {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 1px solid #939393;
}
.dashboard-movement:last-child {
	border-bottom: none;
}
/* Custom checkbox — wraps a real <input type="checkbox"> for accessibility */
.dashboard-check {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	cursor: pointer;
	margin: 0;
}
.dashboard-check__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.dashboard-check__box {
	display: block;
	width: 24px;
	height: 24px;
	border: 2px solid var(--green-color);
	border-radius: 4px;
	background-color: var(--white-color);
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dashboard-check__box::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 1px;
	width: 6px;
	height: 12px;
	border: solid var(--white-color);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s ease;
}
.dashboard-check__input:checked ~ .dashboard-check__box {
	background-color: var(--green-color);
}
.dashboard-check__input:checked ~ .dashboard-check__box::after {
	transform: rotate(45deg) scale(1);
}
.dashboard-check__input:focus-visible ~ .dashboard-check__box {
	outline: 2px solid var(--green-color);
	outline-offset: 2px;
}
.dashboard-movement__name {
	flex: 1;
	min-width: 0;
	font-family: var(--header-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #000000;
}
.dashboard-movement__duration {
	font-family: var(--header-font);
	font-weight: 400;
	font-size: 14px;
	line-height: 18px;
	color: #939393;
	text-align: right;
	flex-shrink: 0;
}

/* Shopping body (numeric summary row) */
.dashboard-shopping {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-radius: 12px;
	margin-top: 8px;
	font-family: var(--header-font);
	font-weight: 400;
}
.dashboard-shopping__count {
	font-size: 26px;
	line-height: 26px;
	color: #333333;
	flex-shrink: 0;
}
.dashboard-shopping__label {
	font-size: 14px;
	line-height: 18px;
	letter-spacing: -0.0762px;
	color: #333333;
	flex-shrink: 0;
}
.dashboard-shopping__meta {
	margin-left: auto;
	font-size: 14px;
	line-height: 18px;
	letter-spacing: -0.0762px;
	color: #939393;
	text-align: right;
}

/* Pantry list */
.dashboard-pantry {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}
.dashboard-pantry__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #939393;
	font-family: var(--header-font);
}
.dashboard-pantry__item:last-child {
	border-bottom: none;
}
.dashboard-pantry__dot {
	width: 12px;
	height: 12px;
	border-radius: 12px;
	flex-shrink: 0;
}
.dashboard-pantry__item.is-expired .dashboard-pantry__dot {
	background-color: #C0392B;
}
.dashboard-pantry__item.is-warning .dashboard-pantry__dot {
	background-color: #E0A800;
}
.dashboard-pantry__name {
	flex: 1;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #333333;
}
.dashboard-pantry__status {
	font-weight: 400;
	font-size: 14px;
	line-height: 18px;
	color: #939393;
}

/* Stats grid (12-Week plan) */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-top: 12px;
}
.dashboard-stat {
	border: 1px solid #939393;
	border-radius: 12px;
	padding: 12px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
}
.dashboard-stat__value {
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	color: #333333;
}
.dashboard-stat__label {
	font-family: var(--header-font);
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	color: #939393;
}

/* Info bars (success / congrats / warning) */
.dashboard-info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-radius: 12px;
	margin-top: 8px;
	font-family: var(--header-font);
}
.dashboard-info--success,
.dashboard-info--congrats {
	background-color: #eaf4f0;
	color: var(--green-color);
}
.dashboard-info--warning {
	background-color: #FFF7DA;
	color: #6B5A00;
}
.dashboard-info__count {
	font-weight: 700;
	font-size: 26px;
	line-height: 26px;
	color: var(--green-color);
	flex-shrink: 0;
}
.dashboard-info__icon {
	font-size: 22px;
	line-height: 24px;
	color: var(--green-color);
	flex-shrink: 0;
}
.dashboard-info__text {
	flex: 1;
	font-weight: 400;
	font-size: 14px;
	line-height: 18px;
	letter-spacing: -0.0762px;
}

/* Two-column row for Full-plan extras */
.dashboard-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.dashboard-row > .dashboard-card {
	margin: 0;
}

/* Buttons */
.dashboard-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 24px;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
	border: 2px solid var(--green-color);
	background-color: transparent;
	color: var(--green-color);
	transition: background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}
.dashboard-btn--outline {
	color: var(--green-color);
	background-color: transparent;
}
.dashboard-btn--outline:hover,
.dashboard-btn--outline:focus {
	background-color: var(--green-color);
	color: var(--white-color);
}
.dashboard-btn--filled {
	background-color: var(--green-color);
	color: var(--white-color);
}
.dashboard-btn--filled:hover,
.dashboard-btn--filled:focus {
	background-color: var(--white-color);
	color: var(--green-color);
}
.dashboard-btn--block {
	width: 100%;
}

/* Footer disclaimer */
.dashboard-footer {
	margin-top: 56px;
	padding: 24px 0;
	border-top: 1px solid #E5E5E5;
}
.dashboard-footer .dashboard-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.dashboard-footer__note {
	margin: 0;
	font-family: var(--header-font);
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	color: #333333;
}
.dashboard-footer__copy {
	margin: 0;
	font-family: var(--header-font);
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #939393;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
	.dashboard-row {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 767px) {
	.dashboard-section {
		padding: 24px 0 96px;
	}
	.dashboard-card {
		padding: 12px;
	}
	.health-plan {
		padding: 12px;
	}
	.health-plan__summary {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.health-plan__toggle--inline {
		align-self: flex-end;
	}
	.health-plan__title {
		font-size: 15px;
	}
	.health-plan__section-title {
		font-size: 15px;
	}
	.dashboard-card__head {
		flex-wrap: wrap;
		height: auto;
		gap: 8px;
	}
	.dashboard-meal {
		gap: 8px;
	}
	.dashboard-meal__info {
		gap: 8px;
		flex-wrap: wrap;
	}
	.dashboard-meal__name {
		font-size: 15px;
		white-space: normal;
	}
	.dashboard-card__foot {
		justify-content: stretch;
		margin-top: 12px;
	}
	.dashboard-card__foot--center {
		justify-content: stretch;
	}
	.dashboard-btn {
		width: 100%;
	}
	.dashboard-shopping {
		flex-wrap: wrap;
	}
	.dashboard-shopping__meta {
		margin-left: 0;
		flex-basis: 100%;
		text-align: left;
	}
	.dashboard-info__text {
		font-size: 13px;
	}
	.dashboard-welcome {
		margin-bottom: 16px;
	}
	.dashboard-welcome__name {
		font-size: 22px;
		line-height: 32px;
	}
	.dashboard-footer {
		margin-top: 32px;
		text-align: center;
	}
	.dashboard-footer .dashboard-container {
		justify-content: center;
		text-align: center;
	}
	.dashboard-footer__note,
	.dashboard-footer__copy {
		flex-basis: 100%;
	}
}
@media (max-width: 480px) {
	.dashboard-stats {
		grid-template-columns: 1fr 1fr;
		gap: 6px;
	}
	.dashboard-stat {
		padding: 10px 6px;
	}
	.dashboard-stat__value {
		font-size: 18px;
	}
}
