.content_main-pipline {
	border: 1px solid #eee;
	background: #fff;
	min-height: 800px;
	display: flex;
	align-items: flex-start;
	gap: 80px;
	padding: 37px 37px 37px 23px;
	min-width: 880px;
	overflow-x: auto;
}

.pipeline {
	width: 95%;
	position: relative;
}

.pipeline_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 23px;
}

.pipline_header-calendar {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 0 10px;
	border-radius: 3px;
	border: 1px solid #159c2a;
	background: #fff;
	width: 210px;
	height: 35px;
	position: relative;
	z-index: 100;
	cursor: pointer;
}

.pipline_header-calendar svg {
	cursor: pointer;
}

.pipline_header-calendar p {
	color: #071c0c;
	font-family: 'Sofia Pro';
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	text-transform: lowercase;
	margin-bottom: 0;
}

.pipline_info {
	display: flex;
	gap: 55px;
	align-items: start;
	margin-bottom: 45px;
}

.pipline_info-concluded,
.pipline_info-contracts {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pipline_info-title {
	color: #071c0c;
	font-family: 'Sofia Pro';
	font-weight: 400;
	font-size: 18px;
	font-style: normal;
	line-height: normal;
	text-transform: capitalize;
}

.pipline_info-green {
	color: #159c2a;
	font-family: 'Sofia Pro-S';
	font-size: 34px;
	font-style: normal;
	line-height: normal;
	text-transform: capitalize;
}

.pipline-info-term {
	color: #646564;
	font-family: 'Sofia Pro';
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	text-transform: capitalize;
	margin-bottom: 0;
}

.pipline-info-term span {
	color: #159c2a;
}

.pipline_table {
	margin-top: 75px;
}

.pipline_table-top {
	display: grid;
	grid-template-columns: 1fr 1.5fr 1fr 1fr 1fr 1fr;
	background: #f9f9f9;
    font-family: "Sofia Pro-M";
	border-bottom: 1px solid #d3d3d3;
	padding: 15px;
	align-items: center;
    justify-content: space-between;
}

.pipline_table-top > div {
	padding: 0;
	text-align: start;
	font-size: 16px;
	color: #212529;
	width: 100%;
}

.funded_date {
	padding: 10px 25px;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 168px;
	text-align: left;
}

.business_name {
	padding: 10px 25px;
	width: 290px;
	text-align: left;
}

.lender {
	padding: 10px 25px;
	width: 200px;
	text-align: left;
}

.funded_amount {
	padding: 10px 25px;
	width: 165px;
	text-align: center;
}

.commission_paid {
	padding: 10px 25px;
	width: 176px;
	text-align: center;
}

.renewal_status {
	padding: 10px 25px;
	width: 162px;
	text-align: left;
	flex-shrink: 0;
}

.pipline_table-item {
	display: grid;
	grid-template-columns: 1fr 1.5fr 1fr 1fr 1fr 1fr;
	background: #fff;
	border-bottom: 1px solid #d3d3d3;
	padding: 15px;
	align-items: center;
    justify-content: space-between;
}

.pipline_table-item:hover {
	background: linear-gradient(0deg,
			rgba(241, 249, 242, 0.7) 0%,
			rgba(241, 249, 242, 0.7) 100%),
		#fff;
}

.pipline_table-item > div {
	padding: 0;
	text-align: start;
	font-size: 16px;
	color: #212529;
	width: 100%;
}

.pipeline_chooseDate {
	position: absolute;
	top: -34px;
	right: -18px;
	background: #fff;
	padding: 35px 20px 15px;
	box-shadow: 0px 7px 13px 0px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	display: none;
	z-index: 99;
}

.pipeline_chooseDate-top {
	display: flex;
	align-items: start;
	gap: 20px;
}

.pipeline_chooseDate-dates {
	border-radius: 5px;
	border: 1px solid #d9d9d9;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 1px;
	width: 191px;
	height: 341px;
	justify-content: space-evenly;
	flex-shrink: 0;
}

.pipeline_chooseDate-dates li {
	color: #071c0c;
	font-family: 'Sofia Pro';
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	text-transform: capitalize;
	padding: 10px 15px;
	height: 37px;
	cursor: pointer;
}

.pipeline_chooseDate-dates li:hover {
	background: #d9d9d9;
}

.pipeline_chooseDate-right {
	width: 100%;
	display: flex;
	align-items: start;
	flex-direction: column;
}

.pipline_header-calendar {
	margin-left: auto;
	margin-bottom: 10px;
}

.pipeline_chooseDate-calendar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.pipeline_chooseDate-bottom {
	border: 1px solid #eee;
	display: flex;
	height: 66px;
	padding: 0px 20px;
	display: flex;
	justify-content: end;
	align-items: center;
	gap: 60px;
	flex-shrink: 0;
	margin-top: 20px;
}

.pipeline_chooseDate-bottom--dates {
	display: flex;
	align-items: center;
	gap: 5px;
}

#chooseDate-monthStart,
#chooseDate-monthEnd {
	border-bottom: 1px dashed #1bb21b;
	padding: 3px;
	color: #232323;
	text-align: center;
	font-family: 'Sofia Pro';
	font-size: 15px;
	font-style: normal;
	font-weight: 300;
	line-height: normal;
	text-transform: capitalize;
}

#chooseDate-dayEnd,
#chooseDate-dayStart {
	padding: 3px 10px;
	color: #1bb21b;
	text-align: center;
	font-family: 'Sofia Pro';
	font-size: 15px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	text-transform: capitalize;
	width: 35px;
	height: 26px;
	background: linear-gradient(0deg,
			rgba(241, 249, 242, 0.7) 0%,
			rgba(241, 249, 242, 0.7) 100%),
		#fff;
}

#chooseDate-yearEnd,
#chooseDate-yearStart {
	padding: 3px;
	color: #232323;
	text-align: center;
	font-family: 'Sofia Pro';
	font-size: 15px;
	font-style: normal;
	font-weight: 300;
	line-height: normal;
	text-transform: capitalize;
}

.pipeline_chooseDate-btns {
	display: flex;
	align-items: center;
	gap: 17px;
}

.pipeline_chooseDate-btns button {
	padding: 10px 20px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	font-family: Montserrat;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
	text-transform: capitalize;
	border: none;
}

.pipeline_chooseDate-btns button:hover {
	scale: 0.95;
}

#pipeline_chooseDate-cancel {
	background: #1b1b1b;
}

#pipeline_chooseDate-apply {
	background: #159c2a;
}

/* Стили для календаря Flatpickr */

.flatpickr-day {
	text-align: center;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dayContainer {
	background: transparent !important;
}

.flatpickr-day.inRange {
	box-shadow: none;
}

/* Цвет для выбранных дат */
.flatpickr-day.startRange,
.flatpickr-day.endRange {
	background-color: #159c2a;
	/* Зеленый фон */
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
	background-color: #159c2a;
}

/* Цвет для диапазона между выбранными датами */
.flatpickr-day.inRange {
	background: rgba(21, 156, 42, 0.2);
	/* Прозрачный зеленый */
	color: #159c2a;
	/* Зеленый текст */
	display: flex;
	align-items: center;
	justify-content: center;
}

.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
.flatpickr-day.endRange.startRange {
	border-radius: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
	border-radius: 0 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
	background: #159c2a;
	border: none;
}

.pipeline_chooseDate-bottom {
	display: none;
	/* Скрыто изначально */
}

.no-data {
	margin: 25px auto;
	display: block;
	text-align: center;
	color: red;
	font-weight: 500;
	font-family: 'Sofia Pro';
}

/* Общий стиль тултипа */
#custom-tooltip {
	border-radius: 3px;
	border: 1px solid #e8e9e8;
	background: #fff;
	box-shadow: 0px 2px 3px 0px rgba(3, 3, 3, 0.1);
	color: #1b1b1b;
	font-family: 'Sofia Pro';
	padding: 8px;
	width: 127px;
	height: 64px;
}

/* Стиль для первой строки (Funded Amount) */
#custom-tooltip .tooltip-value {
	color: #1b1b1b;
	font-size: 18px;
	font-weight: 400;
	margin-bottom: 4px;
}

/* Стиль для второй строки (сумма) */
#custom-tooltip .tooltip-label {
	color: #1b1b1b;
	font-size: 14px;
	font-family: 'Sofia Pro-L';
}

.pipeline_chooseDate.show {
	display: block;
}

/* Wrapper for both filters to sit side-by-side */
#filtersContainer {
	display: flex;
	gap: 10px;
	/* Space between filter buttons */
	align-items: flex-start;
	/* Align items at the top */
}

/* Original CSS from user, with minor adjustments if needed */
#year_filter_wrapper,
#representative_filter_wrapper {
	/* Updated to use new wrapper IDs */
	position: relative;
}

.user-button {
	border: 1px solid #d3d3d3;
	background: #fff;
	padding: 10px 17px;
	font-size: 14px;
	/* text-transform: uppercase; */
	/* Removed uppercase for better fit with "Representative" */
	cursor: pointer;
	position: relative;
	color: #000;
	font-family: "Sofia Pro-M", "Sofia Pro", sans-serif;
	/* Added fallback */
	min-width: 150px;
	font-size: 13px;
	text-transform: capitalize;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border-radius: 4px;
	/* Added slight rounding */
}

.user-button:hover {
	border: 1px solid #c0c0c0;
	/* Slightly darker border on hover */
	background: #f0f0f0;
	/* Slightly different hover background */
	box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.04) inset;
	/* Adjusted shadow */
}

.user-button.active {
	border: 1px solid #c0c0c0;
	background: #ececec;
	box-shadow: 0px 4px 1px 0px rgba(0, 0, 0, 0.06) inset;
}

.custom_dropdown {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	width: 250px;
	/* Slightly wider for representative names */
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	box-shadow: 0px 7px 20px 0px rgba(35, 35, 35, 0.15);
	z-index: 999;
	display: none;
}

.custom_dropdown li {
	color: #071c0c;
	font-family: "Sofia Pro", sans-serif;
	display: flex;
	align-items: center;
	padding: 10px 12px;
	/* Adjusted padding */
	font-size: 13px;
	gap: 10px;
	/* Increased gap for checkbox */
	/* text-align: center; */
	/* Removed text-align center for left alignment */
	text-transform: capitalize;
	cursor: pointer;
	white-space: nowrap;
	/* Prevent names from wrapping */
	overflow: hidden;
	text-overflow: ellipsis;
}

.custom_dropdown.active {
	display: block;
}

.custom_dropdown li:hover {
	background-color: #e6e5e5;
}

.dropdown_search-wrapper {
	border-radius: 3px 3px 0px 0px;
	border-bottom: 1px solid #eee;
	/* Used direct value for --LINE */
	background: #fff;
	padding: 10px;
}

.dropdown_search {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-radius: 3px;
	border: 1px solid #232323;
	height: 30px;
	/* Increased height */
	padding: 0 10px;
	/* Adjusted padding */
}

.dropdown_search-wrapper input {
	width: 100%;
	border: none;
	background: transparent;
	outline: none;
	font-size: 13px;
	font-family: "Sofia Pro", sans-serif;
}

.dropdown_search-wrapper input::placeholder {
	color: #808080;
	font-family: "Sofia Pro", sans-serif;
	font-size: 13px;
}

.dropdown_search-wrapper svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	cursor: pointer;
}

.custom_dropdown-users {
	max-height: 370px;
	/* Adjusted max height */
	overflow-y: auto;
}

/* Custom scrollbar for webkit browsers */
.custom_dropdown-users::-webkit-scrollbar {
	width: 6px;
}

.custom_dropdown-users::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.custom_dropdown-users::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.custom_dropdown-users::-webkit-scrollbar-thumb:hover {
	background: #a1a1a1;
}

.custom_checkbox {
	border-radius: 3px;
	border: 1px solid #c6c6c6;
	background: #fff;
	flex-shrink: 0;
	width: 16px;
	/* Slightly larger checkbox */
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.custom_checkbox.checked {
	background: #159c2a;
	border: 1px solid #159c2a;
}

.custom_checkbox svg {
	width: 11px;
	/* Ensure SVG size is consistent */
	height: 8px;
}

.custom_dropdown-btns {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 10px;
	border-radius: 0px 0px 3px 3px;
	border-top: 1px solid #eee;
	/* Used direct value for --LINE */
	background: #fff;
	color: #232323;
	font-family: "Sofia Pro-M", "Sofia Pro", sans-serif;
	/* "proxima_novasemibold" might not be available */
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
}

.custom_dropdown-apply,
.custom_dropdown-cancel {
	/* Combined for shared properties */
	width: 85px;
	/* Increased width for better text fit */
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	/* Added border-radius */
	cursor: pointer;
	/* Added cursor pointer */
	transition: transform 0.1s ease;
	/* Smooth transition for hover */
}

.custom_dropdown-apply {
	color: #fff;
	background: #159c2a;
	border: none;
	/* Removed default border */
}

.custom_dropdown-cancel {
	color: #232323;
	border: 1px solid #159c2a;
	background: #fff;
	/* Explicit background */
}

.custom_dropdown-apply:hover,
.custom_dropdown-cancel:hover {
	transform: scale(0.97);
	/* Slightly different hover effect */
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(35, 35, 35, 0.35);
	z-index: 995;
}

.overlay.open {
	display: flex;
}

.employee-count {
	/* This class is reused for count display */
	color: #159c2a;
	font-family: "Sofia Pro-M", "Sofia Pro", sans-serif;
	font-weight: bold;
	/* Make count bold */
}

.chart-legend {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping if many representatives */
    justify-content: center; /* Center legend items */
    gap: 15px; /* Space between legend items */
    margin-top: 20px; /* Space above the legend */
    margin-bottom: 15px; /* Space below the legend */
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between color swatch and name */
    font-family: 'Sofia Pro', sans-serif;
    font-size: 14px;
    cursor: default; /* Indicate it's not interactive */
}
.legend-color-swatch {
    width: 20px;
    height: 10px;
    border-radius: 2px;
    display: inline-block; /* Ensure it takes up space */
}

/* Ensure enough space for the chart and legend */
.pipline_main {
    /* Adjust height or min-height if necessary */
    padding-bottom: 20px; /* Add some padding at the bottom */
}

.reset-button {
    background-color: #808080; /* Grey background */
    border: 1px solid #707070; /* Slightly darker grey border */
    border-radius: 4px; /* Rounded corners */
    padding: 10px 12px; /* Adjust padding to fit icon nicely */
    cursor: pointer;
    display: flex; /* To center SVG */
    align-items: center;
    justify-content: center;
    min-width: auto; /* Override user-button min-width */
    width: 38px; /* Fixed width for a more square button with padding */
    height: 38px; /* Fixed height */
    box-shadow: none; /* Remove inherited shadow if any */
}

.reset-button:hover {
    background-color: #707070;
    border-color: #606060;
    box-shadow: none; /* Ensure no shadow on hover either */
}

.reset-button.active { /* In case .active class is added, ensure styles are consistent */
    background-color: #6a6a6a;
    border-color: #5a5a5a;
    box-shadow: none;
}

.reset-button svg {
    width: 16px; /* SVG size */
    height: 16px;
    fill: white; /* SVG color */
}

.hidden {
    display: none !important; /* To hide the button */
}

/* Ensure user-button general styles don't conflict too much if reset-button is also a user-button */
.user-button.reset-button { /* Specificity for reset button that might also have user-button class */
    text-transform: none; /* Override text-transform if needed */
    font-size: initial; /* Override font-size if needed */
}

@media screen and (max-width: 1800px) {
	.content_main-nav {
		flex-shrink: 0;
	}

	.funded_date,
	.business_name,
	.lender,
	.funded_amount,
	.commission_paid,
	.renewal_status {
		padding: 10px;
		font-size: 14px;
	}

	.business_name {
		width: 220px;
	}

	.lender {
		width: 150px;
	}

	.funded_amount,
	.commission_paid {
		width: 130px;
	}

	.content_main-pipline {
		gap: 30px;
	}
}