﻿/* Autocomplete Dropdown Styles */
#suggestions {
	position: absolute;
	top: calc(100% - 1rem); /* Positions right below the input group */
	left: 0;
	right: 0;
	z-index: 1050;
	max-height: 280px;
	overflow-y: auto;
	background-color: #ffffff;
	border: 1px solid #ced4da;
	border-top: none;
	border-radius: 0 0 0.375rem 0.375rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	display: none;
}
/*
	#suggestions .dropdown-item,
	#suggestions .suggestion-item {
		padding: 0.5rem 0.75rem;
		cursor: pointer;
	}

		#suggestions .dropdown-item:hover,
		#suggestions .suggestion-item:hover {
			background-color: var(--bs-tertiary-bg, #f8f9fa);
		}
*/

.suggestion-item {
	padding: 0.65rem 1rem;
	cursor: pointer;
	border-bottom: 1px solid #e9ecef;
	font-size: 0.95rem;
	font-weight:bolder;
	color: #212529;
	text-align: left;
}

	.suggestion-item:last-child {
		border-bottom: none;
	}

	.suggestion-item:hover,
	.suggestion-item.active {
		background-color: #0d6efd !important;
		color: #ffffff !important;
	}


.checklist .list-inline-item::before {
	content: "✓";
	color: #198754; /* Bootstrap success green */
	font-weight: bold;
	margin-right: 0.35rem;
}

summary {
	color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}
.page-break {
	page-break-before: always;
	break-before:page;
	page-break-after: always; /* Force a new page after this element */
	break-after: page; /* Modern equivalent */
}

/* read more section */
.truncate-fade {
	position: relative;
	max-height: 150px; /* Adjust default collapsed height */
	overflow: hidden;
	transition: max-height 0.3s ease;
}

	/* Bottom fade overlay when collapsed */
	.truncate-fade::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 40px;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
		pointer-events: none;
	}

	/* Expanded full-height state */
	.truncate-fade.is-expanded {
		max-height: 2000px;
	}

		.truncate-fade.is-expanded::after {
			display: none;
		}
/* read more section */

/* Mobile view by default (under 992px) */
.offcanvas-top.offcanvas-custom {
	height: 100vh !important;
}

/* Desktop view (992px and up) */
@media (min-width: 992px) {
	.offcanvas-top.offcanvas-custom {
		height: 355px !important;
	}
}