/* General Styles */
.wpb_content_element,
p {
	margin-bottom: 10px !important;
}

/* Sidebar Styles */
#sidebar {
	transition: width 0.3s ease;
}

.pb-4.space-b-2.border-b {
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e2e8f0;
	overflow: hidden;
}

/* Badge Styles */
.badges_dash_wrap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
	gap: 0.35rem;
	padding: 0.35rem 0;
}

.badge-ind-wrap {
	position: relative;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.tooltip_badge {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f3f4f6;
	border-radius: 4px;
	transition: all 0.2s ease-in-out;
}

.tooltip_badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.not_completed_badge {
	opacity: 0.3;
}

.tooltip_badge [class^="fa"],
.tooltip_badge [class*=" fa"] {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: var(--fa-display, inline-block);
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	text-rendering: auto;
	font-size: 1rem;
	color: #4a5568;
}

/* Tooltip Styles */
.tooltiptext {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s, visibility 0.2s;
	position: absolute;
	z-index: 1000;
	background-color: #333;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 10px;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 0.75rem;
	pointer-events: none;
	width: max-content;
}

.badge-ind-wrap:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

/* Search Styles */
.search_wrapper_dashj_nav form {
	margin-bottom: 0 !important;
}

.search_wrapper_dashj_nav input#is-search-input-57950 {
	background: #f3f4f6;
	border: none !important;
	border-radius: 5px;
	min-width: 350px;
	color: black;
	height: 45px;
	padding: 0 15px;
}

.search_wrapper_dashj_nav button.is-search-submit {
	display: none;
}

/* LearnDash Overrides */
.ld-table-list-header.ld-primary-background {
	background-color: #111827 !important;
}

.ld-expand-button {
	background: #1c64f2 !important;
}

.in_dash .ld-profile-card {
	display: none !important;
}

/* Dark Mode Styles */
.dark #ld-profile .ld-item-list .ld-item-list-item {
	border: 1px solid #374151 !important;
	background: #202a37 !important;
}

.dark .ld-table-list-item-preview {
	color: black;
}

.dark .search_wrapper_dashj_nav input#is-search-input-57950 {
	background: #374151;
	color: white;
}

.dark .pb-4.space-b-2.border-b {
	border-bottom-color: #2d3748;
}

.dark .tooltip_badge {
	background-color: #1e2733;
}

.dark .tooltip_badge [class^="fa"],
.dark .tooltip_badge [class*=" fa"] {
	color: #e2e8f0;
}

/* Responsive Styles */
/* @media (min-width: 1024px) {
    #sidebar {
        width: 4rem;
    }

    #sidebar:hover {
        width: 16rem;
    }

    #sidebar .sidebar-text,
    #sidebar .sidebar-content {
        opacity: 0;
        transition: opacity 0.2s ease;
        white-space: nowrap;
    }

    #sidebar:hover .sidebar-text,
    #sidebar:hover .sidebar-content {
        opacity: 1;
    }

    #sidebar:not(:hover) .sidebar-text,
    #sidebar:not(:hover) .sidebar-content {
        position: absolute;
        left: -9999px;
    }

    #sidebar .fa-solid {
        margin-right: 0;
        transition: margin-right 0.3s ease;
    }

    #sidebar:hover .fa-solid {
        margin-right: 0.75rem;
    }

    #sidebar:not(:hover) .badges_dash_wrap {
        display: none;
    }
} */

.alignwide {
	margin: 2rem 0;
	max-width: 100%;
}

/* Add these styles to your custom CSS file */

/* Top Gainers / Losers Component Styles */
#top-gainers-losers {
	font-size: 14px;
	margin-top: 12px;
}

#top-gainers-losers table {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
}

#top-gainers-losers th,
#top-gainers-losers td {
	padding: 8px 4px;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#top-gainers-losers th:first-child,
#top-gainers-losers td:first-child {
	width: 20%;
}

#top-gainers-losers th:nth-child(2),
#top-gainers-losers td:nth-child(2),
#top-gainers-losers th:nth-child(3),
#top-gainers-losers td:nth-child(3) {
	width: 25%;
}

#top-gainers-losers th:last-child,
#top-gainers-losers td:last-child {
	width: 30%;
}

@media (max-width: 1023px) {
	#top-gainers-losers {
		font-size: 12px;
	}

	#top-gainers-losers th,
	#top-gainers-losers td {
		padding: 6px 2px;
	}
}

@media (max-width: 639px) {
	#top-gainers-losers {
		font-size: 11px;
	}

	#top-gainers-losers th,
	#top-gainers-losers td {
		padding: 4px 2px;
	}
}

/* Hide scrollbar for Chrome, Safari and Opera */
#top-gainers-losers .overflow-x-auto::-webkit-scrollbar {
	display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#top-gainers-losers .overflow-x-auto {
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}

/* inbox */
div#fep-wrapper div {
	/* padding: 5px 2px; */
}
.dark div#fep-wrapper {
	color: white;
	background: #202a37;
}
.dark div#fep-wrapper div {
	border-color: #374151;
	/* padding: 5px 2px; */
}
.dark .fep-odd-even > div:nth-child(odd) {
	background-color: #2e3b4e !important;
}
.dark #fep-wrapper a:not(.fep-button, .fep-button-active) {
	color: #1c64f2;
}

.dark form#fep-messagebox-search-form input {
	background: #374151;
	border: none;
}

.dark .fep-bulk-action select {
	background-color: #374151;
}

.dark .fep-table-row-message {
	background: #202a37 !important;
}
.dark select.fep-filter.fep-ajax-load {
	background-color: #374151;
}

.dark .fep-table.fep-action-table button,
.dark .fep-form-newmessage .fep-button {
	background: #1c64f2;
	color: white;
	border: none;
}

.dark .front-end-pm-form select,
.dark .front-end-pm-form input,
.dark .front-end-pm-form textarea {
	/* background-color: #374151; */
	color: black;
	border: none;
}

.dark input.fep-attachment-field-input {
	background: none !important;
	color: white;
}

/* Courses */
.dark .learndash-wrapper .ld-topic-status {
	background: #374151;
}

.learndash-wrapper .ld-topic-status {
	padding: 10px 5px;
}

.ld-expand-button.ld-button-alternate {
	color: white !important;
	padding: 10px !important;
	margin-right: 10px !important;
}
.dark .ld-item-list-item-preview {
	background: #374151;
}

.dark .ld-alert-messages {
	color: white;
}
.dark .ld-breadcrumbs {
	background: #374151;
	color: white;
}
.dark a.ld-item-name.ld-primary-color-hover {
	background: #374151;
	color: white !important;
}
a.ld-item-name.ld-primary-color-hover:hover {
	background: #202a37 !important;
}

.dark .ld_course_grid article {
	background: #374151 !important;
}

.dark .ld_course_grid article p,
.dark .ld_course_grid article h3 {
	color: white !important;
}

.dark .ld_course_grid {
	border: 1px solid #374151 !important;
	padding: 10px !important;
	background-color: #374151 !important;
}

.ld_course_grid {
	padding: 10px !important;
	border: 1px solid #e5e7eb !important;
}

/* Economic Calendar Styles */
.dark .economic-calendar tr {
	color: white !important;
}

.economic-calendar {
	font-size: 14px;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 20px;
	margin-bottom: 20px;
	max-width: 100%;
	overflow-x: auto;
}

@media (min-width: 1480px) {
	.economic-calendar {
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
	}
}

.economic-calendar h2 {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 15px;
	color: #333333;
}

.economic-calendar .controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.economic-calendar input[type="date"] {
	padding: 8px;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	background-color: #f3f4f6;
	color: #333333;
	flex: 1;
	min-width: 120px;
}

.economic-calendar button {
	background-color: #1c64f2;
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	flex: 1;
	min-width: 120px;
}

.economic-calendar button:hover {
	background-color: #1558b3;
}

.economic-calendar .table-container {
	overflow-x: auto;
	max-width: 100%;
}

.economic-calendar table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	/* min-width: 800px; */
}

.economic-calendar th,
.economic-calendar td {
	padding: 8px;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.economic-calendar th {
	background-color: #f3f4f6;
	font-weight: bold;
	color: #4a5568;
	position: sticky;
	top: 0;
	z-index: 10;
}

.economic-calendar tr:nth-child(even) {
	background-color: #f9fafb;
}

.economic-calendar .pagination {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	flex-wrap: wrap;
}

.economic-calendar .pagination button {
	margin: 5px;
	padding: 5px 10px;
	font-size: 14px;
	flex: 0 1 auto;
}

.economic-calendar .pagination button.current-page {
	background-color: #1558b3;
}

.economic-calendar #loading,
.economic-calendar #error-message {
	text-align: center;
	padding: 10px;
	margin-top: 10px;
}

.economic-calendar #error-message {
	color: #ff4444;
	background-color: rgba(255, 68, 68, 0.1);
	border: 1px solid #ff4444;
	border-radius: 4px;
}

.economic-calendar #debug-info {
	font-size: 12px;
	color: #4a5568;
	opacity: 0.7;
	margin-top: 20px;
}

/* Dark mode styles */
.dark .economic-calendar {
	background-color: #1e2733;
	color: #e2e8f0;
}

.dark .economic-calendar h2 {
	color: #e2e8f0;
}

.dark .economic-calendar input[type="date"] {
	background-color: #374151;
	border-color: #4a5568;
	color: #e2e8f0;
}

.dark .economic-calendar th {
	background-color: #2d3748;
	color: #e2e8f0;
}

.dark .economic-calendar tr:nth-child(even) {
	background-color: #202a37;
}

.dark .economic-calendar td {
	border-color: #4a5568;
}

.dark .economic-calendar #debug-info {
	color: #a0aec0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.economic-calendar {
		padding: 10px;
	}

	.economic-calendar .controls {
		flex-direction: column;
	}

	.economic-calendar input[type="date"],
	.economic-calendar button {
		width: 100%;
	}

	.economic-calendar th,
	.economic-calendar td {
		padding: 6px;
		font-size: 12px;
	}
}

.economic-calendar div#pagination button {
	padding: 0;
	width: 50px !important;
	padding: 0 !important;
	min-width: auto;
}
.dark .economic-calendar div#pagination button {
	background: none;
}
.economic-calendar div#pagination button {
	background: #f1f1f1;
	color: black;
}
.dark .economic-calendar div#pagination button {
	color: white !important;
}

.economic-calendar button.current-page {
	background: #374151 !important;
	color: white !important;
}

div#calendar-content {
	position: relative;
	overflow-x: scroll;
}

@media only screen and (max-width: 557px) {
	img#ttg_logo {
		max-width: 140px !important;
	}

	input#is-search-input-57950 {
		min-width: auto !important;
		margin-top: 16px;
		width: 100%;
	}
}

#wpadminbar {
	position: fixed !important;
}

div#main-content iframe {
	width: 100% !important;
    height: 699px !important;
    position: relative !important;
}

/* Removes weird padding from vimeo vids */
.ld-tab-content > div:first-child,
.wp-block-jetpack-layout-grid-column.wp-block-jetpack-layout-grid__padding-none > div:first-child {
    padding: 0 !important;
}

/* centers main content and sets max width */
div#main-content main {
    max-width: 2000px;
    margin: 0 auto;
}