/* contactGroupManager_supplemental.css */
/* This CSS complements your existing stylesheet for the new component. */

/*
 * 1. Youth Checklist (`#offenderContactGroupCheckList`)
 *    - Replaces the old `float: left; width: 25%` with a modern, responsive grid.
 *    - The container itself gets a border from your existing `.SolidLightGrayBorder` class.
*/
#offenderContactGroupCheckList {
	display: grid;
	/* Creates as many 220px columns as will fit, and makes them responsive */
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	padding: 10px;
	min-height: 60px; /* Prevents container from collapsing when empty */
	max-height: 250px;
	overflow-y: auto;
}

	/*
 * 2. Checklist Items (`.checkBoxContainer` and `.selectAllCheckBoxCont`)
 *    - Your original CSS used floats for these. We remove the floats and widths
 *      to let them work correctly within the new CSS Grid.
*/
	#offenderContactGroupCheckList .checkBoxContainer,
	#offenderContactGroupCheckList .selectAllCheckBoxCont {
		float: none; /* Remove float from original class */
		width: auto; /* Remove fixed width from original class */
		display: flex;
		align-items: center;
		padding: 2px;
	}

	#offenderContactGroupCheckList .selectAllCheckBoxCont {
		/* Makes the "Select All" bar span the entire width of the grid */
		grid-column: 1 / -1;
		font-weight: bold;
	}

/*
 * 3. Selected Youth Container (`#ContactMemberNames`)
 *    - This creates the "chip" container for selected youth.
 *    - Uses Flexbox to allow chips to wrap naturally.
*/
#ContactMemberNames {
	display: flex;
	flex-wrap: wrap;
	gap: 8px; /* Space between chips */
	padding: 10px;
	min-height: 40px; /* So it doesn't collapse when empty */
}

	/*
 * 4. Selected Youth Chip (`.selectedOffender`)
 *    - Styles the individual selected youth item to look like a modern tag/chip.
 *    - We reuse `.deleteContactOffender` for the 'x' icon.
*/
	#ContactMemberNames .selectedOffender {
		float: none; /* Override original float */
		width: auto; /* Override original width */
		display: inline-flex; /* Align icon and text */
		align-items: center;
		background-color: #eee; /* Uses your `tr.alt td` background color */
		border: 1px solid #ddd;
		border-radius: 15px; /* Rounded corners for the chip */
		padding: 4px 8px 4px 4px;
		font-size: 0.9em;
		line-height: 1;
	}

	/*
 * 5. Delete Icon within the Chip
 *    - Your original `.deleteContactOffender` is reused here. We just add a margin.
*/
	#ContactMemberNames .deleteContactOffender {
		margin-right: 6px;
	}

/*
 * 6. "Add to List" Button
 *    - Your CSS already styles `.addToSelectedListBtnCont`, but we'll center the arrow.
 */
.addToSelectedListBtnCont {
	display: flex; /* Use flex to easily center the content */
	justify-content: center;
	align-items: center;
	height: 30px;
}

	.addToSelectedListBtnCont .arrow-down {
		margin: 0; /* Override the original margin to allow flex centering */
		float: none;
	}
