.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: start;
	justify-content: center;
	background: #0000001a;
	z-index: 999;
	padding: 25px;
	overflow: auto;
}

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

.payments {
	width: 100%;
}

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

.payments_addNew {
	margin-bottom: 22px;
}

.payments_general {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 15px;
	height: 115px;
	margin: 34px 0 45px;
	border-radius: 2px;
	border-top: 1px solid #e8e9e8;
	border-bottom: 1px solid #e8e9e8;
}

.payments_general-item {
	padding: 15px 0;
}

.payments_general-item span {
	color: #808080;
	text-align: center;
	font-family: 'Sofia Pro';
	font-size: 15px;
	font-style: normal;
	line-height: normal;
}

.payments_general-item p {
	color: #1b1b1b;
	font-family: 'Sofia Pro-M';
	font-size: 25px;
	font-style: normal;
	line-height: normal;
	text-transform: uppercase;
}

.payments_info {
	display: flex;
	align-items: center;
	background: #f9f9f9;
	color: #1b1b1b;
	font-family: 'Sofia Pro-M';
	font-size: 16px;
	font-style: normal;
	line-height: normal;
}

.date_absent {
	width: 100%;
	max-width: 280px;
	padding: 10px 25px;
}
.absent_type {
	width: 100%;
	max-width: 280px;
	padding: 10px 25px;
}

.absent_type-input,
.paid-status-hidden-input {
	position: absolute;
	top: 0;
	width: 100%;
	height: 43px;
	opacity: 0;
	pointer-events: none;
}

.notes {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.notes_links {
	display: flex;
	align-items: start;
	gap: 10px;
}

.toggle_links {
	border: none;
	border: 1px solid #eee;
	background: #fff;
	border-radius: 5px;
	width: 38px;
	height: 30px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-input {
	flex-grow: 1;
	border: none;
	outline: none;
	min-width: 120px;
}

.notes_links_list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-height: 30px;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.notes_links_list.open {
	max-height: 100%;
}

.notes_links_list li {
	background-color: #ddf1e1;
	display: block;
	padding: 2px 5px;
	border-radius: 5px;
	font-size: 14px;
}
.notes_links_list li > a {
	text-decoration: none;
	color: inherit;
}

.payment_date,
.payment_amount,
.deals_paid {
	max-width: 280px;
	width: 100%;
	padding: 10px 25px;
}

.success-message {
	color: green;
	margin: 0 auto;
}

.deals_paid-info {
	text-decoration: none;
}

.payments_items {
	display: flex;
	flex-direction: column;
}

.attendance_pag-wrap {
	padding: 20px 40px;
	width: 100%;
}

.payments_item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	color: #1b1b1b;
	font-family: 'Sofia Pro';
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	text-transform: capitalize;
	border-bottom: 1px solid #e8e9e8;
	padding: 7px 0;
}

.payments_modal,
.edit_payment_modal {
	padding: 20px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 682px;
}

.hidden {
	display: none;
}

.flatpickr-calendar.inline {
	position: absolute;
	bottom: 100%;
	top: auto;
}

.payments_modal-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}

.payments_modal-title {
	color: #232323;
	font-family: 'Sofia Pro-S';
	font-size: 18px;
	font-style: normal;
	line-height: normal;
	text-transform: uppercase;
	margin-bottom: 0;
}

.payments_modal-item {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
}

.payments_modal-bottom {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
	margin-top: -10px;
	margin-bottom: 20px;
}

.payments_modal-bottom .payments_modal-item {
	height: 90px;
}

.payments_modal-bottom .payments_modal-item p {
	margin-top: auto;
}

.payments_modal-item label,
.payments_modal--label {
	margin-bottom: 0;
	color: rgba(35, 35, 35, 0.8);
	font-family: 'proxima_novasemibold';
	font-size: 16px;
	font-style: normal;
	line-height: normal;
}

.payments_modal-item input,
.payments_modal-item select,
.custom-selectDeals {
	border: 1px solid #d0d3d1;
	background: #fff;
	width: 100%;
	padding: 10px;
	color: #232323;
	font-family: 'proxima_nova';
	font-size: 16px;
	font-style: normal;
	line-height: normal;
}

.custom-selectDeals {
	cursor: pointer;
	padding: 0;
	min-height: 42px;
}

.payments_modal-item input:focus,
.payments_modal-item textarea:focus {
	box-shadow: 0px 0px 1px 0px #159c2a;
	border: 1px solid #159c2a;
}

.payments_modal-item textarea {
	padding: 10px;
	border: 1px solid #d0d3d1;
	background: #fff;
	box-shadow: 0px 0px 1px 0px rgba(223, 229, 224, 0.1);
	width: 100%;
	color: rgba(35, 35, 35, 0.8);
	max-height: 85px;
	resize: none;
	font-family: 'proxima_nova';
	font-size: 16px;
	font-style: normal;
	line-height: normal;
}

.textarea_left {
	color: #232323;
	font-family: 'proxima_nova';
	font-size: 12px;
	font-style: normal;
	line-height: normal;
}

.payments_modal-calendar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 7px;
	box-shadow: 0px 0px 1px 0px rgba(223, 229, 224, 0.1);
	height: 45px;
	border: 1px solid #d0d3d1;
	padding-right: 10px;
	cursor: pointer;
}

.payments_modal-calendar-p {
	padding: 10px;
	margin-bottom: 0;
	color: rgba(35, 35, 35, 0.8);
	text-align: center;
	font-family: 'proxima_nova';
	font-size: 16px;
	font-style: normal;
	line-height: normal;
}

.payments_modal-btn {
	border-radius: 5px;
	background: #159c2a;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 43px;
	color: #fff;
	font-family: 'proxima_novasemibold';
	font-size: 15px;
	transition: 300ms ease;
}

.payments_modal-btn:hover {
	background: #fff;
	border: 1px solid #159c2a;
	color: #159c2a;
}

.submitted_message {
	font-size: 14px;
	display: block;
	margin: 0 auto;
	color: #159c2a;
	font-family: 'proxima_novasemibold';
}

/* Стили для календаря 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; /* Скрыто изначально */
}

.custom-select--attendance {
	position: relative;
}

/* Инпут в виде поля ввода */
.custom-select__input {
	border: 1px solid #ccc;
	padding: 10px;
	cursor: pointer;
	background-color: white;
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	user-select: none;
}

.error-message {
	color: red;
	font-size: 12px;
	margin-top: 0;
	margin-bottom: 0;
}

.error {
	border: 1px solid red;
}

.payments_modal-calendar .error-message {
	position: absolute;
	bottom: -25px;
}

.custom-select__input:focus {
	outline: none;
}

/* Стили выпадающего списка */
.custom-select__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	border: 1px solid #ccc;
	background-color: white;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	z-index: 10;
	margin-top: 5px;
	padding: 0;
	list-style: none;
}

/* Пункты выпадающего списка */
.custom-select__dropdown li {
	padding: 10px;
	cursor: pointer;
	font-size: 14px;
}

.custom-select__dropdown li:hover {
	background-color: #f0f0f0;
}

.payments_head-selector {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 10px;
	cursor: pointer;
	padding: 10px;
	border-radius: 3px;
	width: 120px;
	background: #f9f9f9;
	position: relative;
	user-select: none;
}

.payments_head-selector svg {
	pointer-events: none;
}

.year_dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: #f9f9f9;
	width: 100%;
	z-index: 10;
	border-radius: 5px;
	display: none;
}

.year_dropdown ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.year_dropdown li {
	color: #071c0c;
	font-family: 'Sofia Pro';
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	font-size: 13px;
}

.year_dropdown.active {
	display: block;
}

.year_dropdown li:hover {
	background-color: #f0f0f0;
}

.options-list,
.options-listPay {
	position: absolute;
	top: calc(100% + 5px);
	left: 0;
	right: 0;
	border: 1px solid #ccc;
	background: #fff;
	max-height: 150px;
	overflow-y: auto;
	z-index: 100;
	display: none;
}

.options-list li,
.options-listPay li {
	padding: 8px 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
}

.options-list li:hover,
.options-listPay li:hover {
	background-color: #ddf1e1;
}

.options-list.show,
.options-listPay.show {
	display: block;
}

.select-input {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px;
}

.selected-item {
	display: flex;
	gap: 5px;
	align-items: center;
	background-color: #ddf1e1;
	border: 1px solid #d0d3d1;
	font-size: 15px;
	border-radius: 5px;
	padding-left: 3px;
	width: fit-content;
}

.selected-item span {
	background: transparent;
	color: #999;
	width: 20px;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	font-size: 15px;
	border-left: 1px solid #999;
}

.checkbox {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background-color: #dfe5e0;
	border: 1px solid #159c2a;
	position: relative;
}

.checkbox.active {
	background: url('../assets/images/checkbox-icon.svg');
	border: none;
}

.selected {
	background-color: #ddf1e1;
}

.search-box {
	background: transparent !important;
}

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

.gallery_item-btns {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-left: auto;
}

.notes-row {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 10px;
}

.gallery_item-btns button {
	border-radius: 5px;
	border: 1px solid #eee;
	background: #fff;
	display: flex;
	align-items: center;
	padding: 3px 10px;
	gap: 9px;
	height: 30px;
}

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

.gallery_item-btns button span {
	color: #8b928c;
	text-align: center;
	font-family: 'Sofia Pro';
	font-size: 16px;
	line-height: normal;
	text-transform: capitalize;
}

.popup-delete {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: none; /* Схований за замовчуванням */
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.popup-delete .popup-content {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.popup-delete h3 {
	margin-bottom: 20px;
	font-size: 1.25rem;
	color: #000;
}

.popup-delete .popup-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.popup-delete .btn-delete {
	padding: 10px 20px;
	background: #f44336;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
}

.popup-delete .btn-cancel {
	padding: 10px 20px;
	background: #4caf50;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
}

@media screen and (max-width: 1810px) {
	.attendance_item {
		padding: 10px 0;
	}
	.absent_type {
		max-width: 220px;
	}

	.date_absent {
		max-width: 150px;
	}

	.content_main {
		gap: 50px;
	}

	.payment_date,
	.payment_amount,
	.deals_paid {
		max-width: 200px;
		width: 100%;
		padding: 10px 25px;
	}
}

@media screen and (max-width: 1575px) {
	.payments_info,
	.payments_items {
		min-width: 980px;
	}
}

@media screen and (max-width: 1310px) {
	.absent_type {
		max-width: 180px;
	}

	.content_main {
		gap: 20px;
	}
}
