/* FxStreet Economic Calendar v2 — scoped under .fxs-eco-calendar-v2 (Figma node 94:29451) */

.fxs-eco-calendar-v2 {
	box-sizing: border-box;
	width: 100%;
}

.fxs-eco-calendar-v2 *,
.fxs-eco-calendar-v2 *::before,
.fxs-eco-calendar-v2 *::after {
	box-sizing: border-box;
}

.fxs-eco-calendar-v2__page {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
	width: 100%;
}

/* Header — node 94:29452 */
.fxs-eco-calendar-v2__header {
	width: 100%;
}

.fxs-eco-calendar-v2__heading {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.fxs-eco-calendar-v2__logo-wrap {
	display: flex;
	align-items: flex-start;
	padding-bottom: 24px;
	flex-shrink: 0;
}

.fxs-eco-calendar-v2__logo {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.fxs-eco-calendar-v2__title {
	margin: 0;
	padding: 0;
	font-size: 36px;
	font-weight: 600;
	line-height: 44px;
	letter-spacing: -0.72px;
	color: #181d27;
	white-space: nowrap;
}

/* Card — node 94:29458 */
.fxs-eco-calendar-v2__card {
	background-color: #ffffff;
	border: 1px solid #d5d7da;
	border-radius: 40px;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow: hidden;
	padding: 24px;
	width: 100%;
}

/* Horizontal tabs — node 94:29459 */
.fxs-eco-calendar-v2__tabs {
	background-color: #fafafa;
	border: 1px solid #e9eaeb;
	border-radius: 40px;
	display: flex;
	gap: 8px;
	align-items: center;
	height: 44px;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.fxs-eco-calendar-v2__tabs > li {
	flex: 1 1 0;
	min-width: 0;
	float: none;
	display: block;
	margin: 0;
}

.fxs-eco-calendar-v2__tabs > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 8px 4px 12px;
	border: 1px solid transparent;
	border-radius: 40px;
	background: transparent;
	color: #717680;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	margin: 0;
}

.fxs-eco-calendar-v2__tabs > li > a:hover,
.fxs-eco-calendar-v2__tabs > li > a:focus {
	background: transparent;
	border-color: transparent;
	color: #717680;
	outline: none;
}

.fxs-eco-calendar-v2__tabs > li.active > a,
.fxs-eco-calendar-v2__tabs > li.active > a:hover,
.fxs-eco-calendar-v2__tabs > li.active > a:focus {
	background-color: #ffffff;
	border-color: #d5d7da;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
	color: #414651;
}

/* Table column — node 94:29461 */
.fxs-eco-calendar-v2__panels {
	width: 100%;
}

.fxs-eco-calendar-v2__column {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

/* Date row — node 94:29462 */
.fxs-eco-calendar-v2__date {
	padding: 12px 24px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #181d27;
	white-space: pre;
}

/* Shared row grid */
.fxs-eco-calendar-v2__row {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 16px 24px;
	width: 100%;
}

.fxs-eco-calendar-v2__row--head {
	border-bottom: 1px solid #d5d7da;
}

.fxs-eco-calendar-v2__col {
	min-width: 0;
}

.fxs-eco-calendar-v2__col--time {
	flex: 1 1 0;
}

.fxs-eco-calendar-v2__col--event {
	flex: 0 0 480px;
	width: 480px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.fxs-eco-calendar-v2__col--value {
	flex: 1 1 0;
}

/* Header row typography — node 94:29464 */
.fxs-eco-calendar-v2__row--head .fxs-eco-calendar-v2__col {
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: #181d27;
}

/* Data rows — node 94:29466 */
.fxs-eco-calendar-v2__table-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.fxs-eco-calendar-v2__row--data .fxs-eco-calendar-v2__col--time {
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	color: #535862;
}

.fxs-eco-calendar-v2__event-inner {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	min-width: 0;
	width: 100%;
}

.fxs-eco-calendar-v2__event-meta {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 0;
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: #535862;
}

.fxs-eco-calendar-v2__currency {
	flex: 0 0 40px;
	width: 40px;
}

.fxs-eco-calendar-v2__event-name {
	flex: 1 1 0;
	min-width: 0;
	word-break: break-word;
}

.fxs-eco-calendar-v2__row--data .fxs-eco-calendar-v2__col--value {
	font-size: 14px;
	line-height: 22px;
	color: #535862;
}

.fxs-eco-calendar-v2__row--data .fxs-eco-calendar-v2__col--value--medium {
	font-weight: 500;
}

.fxs-eco-calendar-v2__row--data .fxs-eco-calendar-v2__col--value--regular {
	font-weight: 400;
}

.fxs-eco-calendar-v2__row--data .fxs-eco-calendar-v2__col--value.text-success {
	color: #027a48;
}

.fxs-eco-calendar-v2__row--data .fxs-eco-calendar-v2__col--value.text-danger {
	color: #b42318;
}

.fxs-eco-calendar-v2 .fflag.ff-round.ff-lg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Footer — node 94:29498 */
.fxs-eco-calendar-v2__footer {
	width: 100%;
}

.fxs-eco-calendar-v2__disclaimer {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	color: #717680;
	width: 100%;
}

/* Mobile stacked layout */
.fxs-eco-calendar-v2__mob-label {
	display: none;
}

@media (max-width: 1199px) {
	.fxs-eco-calendar-v2__page {
		padding-left: 16px;
		padding-right: 16px;
	}

	.fxs-eco-calendar-v2__title {
		font-size: 28px;
		line-height: 36px;
		letter-spacing: -0.56px;
		white-space: normal;
	}

	.fxs-eco-calendar-v2__card {
		border-radius: 24px;
		padding: 16px;
	}

	.fxs-eco-calendar-v2__tabs {
		flex-wrap: wrap;
		height: auto;
		min-height: 44px;
		border-radius: 24px;
	}

	.fxs-eco-calendar-v2__tabs > li {
		flex: 1 1 45%;
	}

	.fxs-eco-calendar-v2__tabs > li > a {
		font-size: 14px;
		line-height: 20px;
		height: 40px;
		padding: 6px 4px 10px;
	}

	.fxs-eco-calendar-v2__row--head {
		display: none;
	}

	.fxs-eco-calendar-v2__row--data {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 16px;
		border-bottom: 1px solid #e9eaeb;
	}

	.fxs-eco-calendar-v2__table-body {
		gap: 0;
	}

	.fxs-eco-calendar-v2__col--event {
		flex: 1 1 auto;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.fxs-eco-calendar-v2__col--time,
	.fxs-eco-calendar-v2__col--value {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 8px 0;
		border-top: 1px solid #e9eaeb;
	}

	.fxs-eco-calendar-v2__col--time {
		border-top: none;
		padding-top: 0;
	}

	.fxs-eco-calendar-v2__mob-label {
		display: inline-block;
		flex: 0 0 94px;
		font-size: 14px;
		font-weight: 500;
		line-height: 22px;
		color: #181d27;
	}

	.fxs-eco-calendar-v2__date {
		padding-left: 16px;
		padding-right: 16px;
	}
}
