/*
 * Member Listing look and feel - modern admin-dashboard styling (left-aligned
 * header, pill tabs, card filters, avatar/status table, slide-in detail
 * drawer). Scoped under #cbroaMemberListingRoot to stay self-contained.
 */

#cbroaMemberListingRoot,
#cbroaMemberListingRoot *,
#cbroaMemberListingRoot *::before,
#cbroaMemberListingRoot *::after {
	box-sizing: border-box;
}

/* Header */
#cbroaMemberListingRoot .cbroaListingHeader {
	margin-bottom: 20px;
}
#cbroaMemberListingRoot h2.memberShipText {
	text-transform: none;
	color: #0f172a;
	font-weight: 700;
	font-size: 26px;
	margin: 0 0 4px;
}
#cbroaMemberListingRoot .cbroaListingSubtitle {
	color: #64748b;
	font-size: 14px;
	margin: 0;
}

/* Member type tabs - individual pill buttons, left aligned */
#cbroaMemberListingRoot .cbroaMyAccNavigation {
	display: flex;
	justify-content: flex-start;
	padding-bottom: 18px;
	border-bottom: none;
}
#cbroaMemberListingRoot .cbroaMyAccNavigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
#cbroaMemberListingRoot .cbroaMemberTab {
	padding: 0;
}
#cbroaMemberListingRoot .cbroaMemberTab a {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	color: #334155;
	background: #eef1f5;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#cbroaMemberListingRoot .cbroaMemberTab:hover a {
	background: #e2e8f0;
}
#cbroaMemberListingRoot .cbroaMemberTab.is-active a {
	color: #fff;
	background: #2563eb;
	box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}
#cbroaMemberListingRoot .cbroaMemberTab.is-active:hover a {
	background: #2563eb;
}

/* Filters card */
#cbroaMemberListingRoot .cbroaFiltersCard {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px 24px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	margin-bottom: 20px;
}
#cbroaMemberListingRoot .filterRow {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 15px;
}
#cbroaMemberListingRoot .filterRow + .filterRow {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #eef1f5;
}
#cbroaMemberListingRoot .cbroaSearchBox {
	position: relative;
	flex: 1 1 320px;
}
#cbroaMemberListingRoot .entryBox {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}
#cbroaMemberListingRoot .dropDownRow {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 15px;
	width: 100%;
}
#cbroaMemberListingRoot .dropDownBox {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 0 1 320px;
	min-width: 220px;
}
#cbroaMemberListingRoot .labelRow label,
#cbroaMemberListingRoot .entryBox label {
	margin-bottom: 0;
	font-weight: 600;
	color: #334155;
	font-size: 13px;
	white-space: nowrap;
}
#cbroaMemberListingRoot .clearCTADiv {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	flex: 1 1 auto;
	padding-bottom: 2px;
}
#cbroaMemberListingRoot .cbroaAnchorTag.closeAnchorTag {
	text-decoration: none;
	cursor: pointer;
	color: #2563eb;
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.15s ease;
}
#cbroaMemberListingRoot .closeAnchorTag i {
	font-size: 12px;
}
#cbroaMemberListingRoot .closeAnchorTag:hover,
#cbroaMemberListingRoot .closeAnchorTag:hover i {
	color: #1d4ed8;
}
#cbroaMemberListingRoot #cbroaMemberSearchButton {
	line-height: 1;
	z-index: 1;
	padding: 0;
	height: 20px;
	width: 20px;
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	transition: color 0.15s ease;
}
#cbroaMemberListingRoot #cbroaMemberSearchButton:hover {
	color: #2563eb;
}
#cbroaMemberListingRoot #cbroaMemberSearch {
	height: 42px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	width: 100%;
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	/* !important: the theme's own input padding rules apparently also use
	   !important (same issue as the form-field text color earlier) - without
	   this, the search icon and placeholder/typed text overlap. */
	padding: 10px 14px 10px 44px !important;
}
#cbroaMemberListingRoot .entryBox select,
#cbroaMemberListingRoot .dropDownBox select {
	border-radius: 8px;
}
#cbroaMemberListingRoot .filterRow input:hover,
#cbroaMemberListingRoot .filterRow select:hover {
	border-color: #2563eb;
}
#cbroaMemberListingRoot .filterRow input:focus,
#cbroaMemberListingRoot .filterRow select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
#cbroaMemberListingRoot .filterRow input,
#cbroaMemberListingRoot .filterRow select {
	font-size: 14px;
	cursor: pointer;
	padding-left: 12px;
	border: 1px solid #e2e8f0;
	height: 42px;
	color: #1a1a1a;
	background-color: #fff;
}
#cbroaMemberListingRoot .dropDownBox select {
	width: 100%;
}

/* Table */
#cbroaMemberListingRoot .memberListingTable th {
	position: relative;
}
#cbroaMemberListingRoot .memberListingTable i.fas.fa-sort-asc {
	position: absolute;
	right: 8px;
	top: 30%;
	font-size: 12px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.15s ease, color 0.15s ease;
}
#cbroaMemberListingRoot .memberListingTable i.fas.fa-sort-desc {
	position: absolute;
	right: 8px;
	bottom: 30%;
	font-size: 12px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.15s ease, color 0.15s ease;
}
#cbroaMemberListingRoot .memberListingTable thead i:hover {
	color: #60a5fa;
	opacity: 1;
}
#cbroaMemberListingRoot .table-wrapper {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	border: 1px solid #e2e8f0;
}
#cbroaMemberListingRoot .memberListingTable {
	font-size: 14px;
	font-weight: normal;
	border: none;
	border-collapse: collapse;
	margin-bottom: 0;
	width: 100%;
	max-width: 100%;
	white-space: nowrap;
	background-color: #fff;
}
#cbroaMemberListingRoot .memberListingTable td,
#cbroaMemberListingRoot .memberListingTable th {
	padding: 14px 16px;
}
#cbroaMemberListingRoot .memberListingTable td {
	font-size: 14px;
	vertical-align: middle;
	white-space: normal;
	color: #334155;
}
#cbroaMemberListingRoot .memberListingTable thead th {
	color: #fff;
	background: #111827;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}
#cbroaMemberListingRoot .cbroaActionsHeader {
	text-align: right;
}
#cbroaMemberListingRoot .memberListingTable tbody tr {
	transition: background-color 0.12s ease;
}
#cbroaMemberListingRoot .memberListingTable tr:nth-child(even) {
	background: #f8fafc;
}
#cbroaMemberListingRoot .memberListingTable tbody tr:hover {
	background: #eff6ff;
}

/* Name cell: avatar + name/id */
#cbroaMemberListingRoot .cbroaNameCell {
	display: flex;
	align-items: center;
	gap: 12px;
}
#cbroaMemberListingRoot .cbroaAvatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}
#cbroaMemberListingRoot .cbroaNameCellText {
	min-width: 0;
}
#cbroaMemberListingRoot .cbroaMemberName {
	margin: 0;
	font-weight: 600;
	color: #0f172a;
	font-size: 14px;
}
#cbroaMemberListingRoot .cbroaMemberId {
	margin: 2px 0 0;
	color: #94a3b8;
	font-size: 12px;
}

/* Status badges */
#cbroaMemberListingRoot .cbroaStatusBadge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
#cbroaMemberListingRoot .cbroaStatusBadge--approved {
	background: #dcfce7;
	color: #15803d;
}
#cbroaMemberListingRoot .cbroaStatusBadge--pending {
	background: #fef3c7;
	color: #b45309;
}
#cbroaMemberListingRoot .cbroaStatusBadge--none {
	background: #f1f5f9;
	color: #94a3b8;
}

/* Actions cell: icon buttons + kebab menu */
#cbroaMemberListingRoot .cbroaActionsCell {
	white-space: nowrap;
	text-align: right;
}
#cbroaMemberListingRoot .cbroaIconButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	color: #64748b;
	font-size: 14px;
	transition: background-color 0.15s ease, color 0.15s ease;
}
#cbroaMemberListingRoot .cbroaIconButton:hover {
	background: #eef1f5;
}
#cbroaMemberListingRoot .cbroaIconButton--view {
	color: #2563eb;
}
#cbroaMemberListingRoot .cbroaIconButton--view:hover {
	background: #dbeafe;
	color: #1d4ed8;
}
#cbroaMemberListingRoot .memberListingTable td[colspan] {
	text-align: center;
	padding: 48px 20px;
	color: #94a3b8;
	font-style: italic;
	font-size: 14px;
}

/* Pagination footer */
#cbroaMemberListingPagination .cbroaPaginationFooter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 20px;
}
#cbroaMemberListingPagination .cbroaPaginationSummary {
	margin: 0;
	color: #64748b;
	font-size: 13.5px;
}
#cbroaMemberListingPagination .paginationContainer {
	display: flex;
	align-items: center;
	gap: 6px;
}
#cbroaMemberListingPagination .pageArrow,
#cbroaMemberListingPagination .pageLink,
#cbroaMemberListingPagination .dots {
	cursor: pointer;
	font-size: 13.5px;
	width: 34px;
	line-height: 34px;
	height: 34px;
	text-align: center;
	border-radius: 8px;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
#cbroaMemberListingPagination .pageArrow.disabled {
	pointer-events: none;
	opacity: 0.4;
}
#cbroaMemberListingPagination .pageArrow.disabled i {
	color: #94a3b8;
}
#cbroaMemberListingPagination .pageLink.active {
	background-color: #2563eb;
	color: #fff;
	font-weight: bold;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}
#cbroaMemberListingPagination .pageLink:hover {
	background-color: #111827;
	color: #fff;
	transform: translateY(-1px);
}
#cbroaMemberListingPagination .pageArrow {
	background-color: #eef1f5;
}
#cbroaMemberListingPagination .pageArrow i {
	font-size: 14px;
	line-height: 1;
	color: #334155;
	transition: color 0.15s ease;
}
#cbroaMemberListingPagination .pageLink {
	background-color: #eef1f5;
	color: #334155;
	font-weight: 700;
}
#cbroaMemberListingPagination .dots {
	pointer-events: none;
	color: #94a3b8;
}

/* Top+bottom synced scrollbar, same trick as les-membership-form-handler */
#cbroaMemberListingRoot .wrapper1,
#cbroaMemberListingRoot .wrapper2 {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
}
#cbroaMemberListingRoot .wrapper1 {
	height: 16px;
}
#cbroaMemberListingRoot .div1 {
	height: 16px;
}

/* Detail drawer */
#cbroaMemberListingRoot .cbroaModalOverlay {
	position: fixed;
	inset: 0;
	background: transparent;
	z-index: 9999;
}
/* The [hidden] attribute must win over the base rule above - otherwise the
   drawer shows (empty) on every page load. */
#cbroaMemberListingRoot .cbroaModalOverlay[hidden] {
	display: none;
}
@keyframes cbroaPanelIn {
	from { transform: translateX(24px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}
#cbroaMemberListingRoot .cbroaModalBox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(460px, 92vw);
	height: 100vh;
	background: #fff;
	box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
	display: flex;
	flex-direction: column;
	animation: cbroaPanelIn 0.2s ease-out;
}
#cbroaMemberListingRoot .cbroaModalHeader {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #eef1f5;
}
#cbroaMemberListingRoot .cbroaModalHeader h3 {
	margin: 0;
	color: #0f172a;
	font-size: 18px;
	font-weight: 700;
}
#cbroaMemberListingRoot .cbroaModalClose {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	transition: background-color 0.15s ease, color 0.15s ease;
}
#cbroaMemberListingRoot .cbroaModalClose:hover {
	background: #f1f5f9;
	color: #0f172a;
}
#cbroaMemberListingRoot .cbroaModalBodyWrap {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
#cbroaMemberListingRoot .cbroaModalForm {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
#cbroaMemberListingRoot .cbroaModalScroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 20px 24px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}
#cbroaMemberListingRoot .cbroaModalScroll::-webkit-scrollbar {
	width: 8px;
}
#cbroaMemberListingRoot .cbroaModalScroll::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 8px;
}
#cbroaMemberListingRoot .cbroaModalStatus {
	color: #334155;
	font-style: italic;
	font-weight: 600;
	font-size: 13px;
}
#cbroaMemberListingRoot .cbroaModalStatus--error {
	color: #c0392b;
}
#cbroaMemberListingRoot .cbroaFormRow {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}
#cbroaMemberListingRoot .cbroaFormRow label {
	font-weight: 600;
	color: #475569;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0;
}
#cbroaMemberListingRoot .cbroaFormRow input,
#cbroaMemberListingRoot .cbroaFormRow select,
#cbroaMemberListingRoot .cbroaReadonlyValue {
	width: 100%;
	height: 40px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	padding: 8px 12px;
	font-size: 14px;
	line-height: 22px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	/* !important: the theme's own form-field rules apparently also use
	   !important, so a plain override here was losing - without this,
	   real saved values render as washed-out as an empty placeholder. */
	color: #1a1a1a !important;
	background-color: #fff !important;
}
#cbroaMemberListingRoot .cbroaFormRow select option {
	color: #1a1a1a;
	background-color: #fff;
}
#cbroaMemberListingRoot .cbroaFormRow input:hover,
#cbroaMemberListingRoot .cbroaFormRow select:hover {
	border-color: #2563eb;
}
#cbroaMemberListingRoot .cbroaFormRow input:focus,
#cbroaMemberListingRoot .cbroaFormRow select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
#cbroaMemberListingRoot .cbroaFormRow input::placeholder {
	color: #94a3b8;
	opacity: 1;
}
#cbroaMemberListingRoot .cbroaReadonlyValue {
	display: block;
	word-break: break-word;
	color: #64748b !important;
	background-color: #f8fafc !important;
	cursor: not-allowed;
}
#cbroaMemberListingRoot .cbroaModalFooter {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	padding: 16px 24px;
	border-top: 1px solid #eef1f5;
	background: #fff;
}
#cbroaMemberListingRoot .cbroaModalFooter button.cbroaCTA {
	border: none;
	cursor: pointer;
	background-color: #2563eb;
	color: #fff;
	padding: 9px 22px;
	border-radius: 8px;
	font-weight: 600;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}
#cbroaMemberListingRoot .cbroaModalFooter button.cbroaCTA:hover {
	background-color: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}
#cbroaMemberListingRoot .cbroaModalFooter #cbroaMemberDetailCancel {
	color: #64748b;
	font-weight: 600;
	text-decoration: none;
}
#cbroaMemberListingRoot .cbroaModalFooter #cbroaMemberDetailCancel:hover {
	color: #0f172a;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 767px) {
	#cbroaMemberListingRoot .entryBox {
		width: 100%;
		justify-content: space-between;
	}
	#cbroaMemberListingRoot .dropDownBox {
		flex: 1 1 100%;
	}
	#cbroaMemberListingRoot .clearCTADiv {
		justify-content: flex-start;
		width: 100%;
	}
	#cbroaMemberListingRoot .cbroaFiltersCard {
		padding: 16px;
	}
}
@media (max-width: 600px) {
	#cbroaMemberListingRoot .cbroaModalBox {
		width: 100vw;
	}
}
