/* ==========================================================================
   Modern reskin for secondary Event CPT list screens (edit.php):
   Speakers, Waitlist Email, Global Reg Form, Reviews.
   ========================================================================== */

body.post-type-mep_event_speaker #wpbody-content,
body.post-type-mep_waitlist_email #wpbody-content,
body.post-type-mep_events_reg_form #wpbody-content,
body.post-type-mep_events_review #wpbody-content {
	background: #F8FAFC;
	min-height: calc(100vh - 32px);
	box-sizing: border-box;
}

@media screen and (max-width: 782px) {
	body.post-type-mep_event_speaker #wpbody-content,
	body.post-type-mep_waitlist_email #wpbody-content,
	body.post-type-mep_events_reg_form #wpbody-content,
	body.post-type-mep_events_review #wpbody-content {
		min-height: calc(100vh - 46px);
	}
}

.wrap.mpwem-post-list-modern-wrap {
	background: #F8FAFC;
	max-width: 1340px;
	padding: 20px;
	min-height: calc(100vh - 100px);
	box-sizing: border-box;
}

/* ---------- Loading placeholder ---------- */

body.post-type-mep_event_speaker.edit-php .wrap,
body.post-type-mep_waitlist_email.edit-php .wrap,
body.post-type-mep_events_reg_form.edit-php .wrap,
body.post-type-mep_events_review.edit-php .wrap {
	position: relative;
	min-height: 420px;
}

body.post-type-mep_event_speaker.edit-php .wrap > *,
body.post-type-mep_waitlist_email.edit-php .wrap > *,
body.post-type-mep_events_reg_form.edit-php .wrap > *,
body.post-type-mep_events_review.edit-php .wrap > * {
	visibility: hidden;
}

body.post-type-mep_event_speaker.edit-php .wrap::before,
body.post-type-mep_waitlist_email.edit-php .wrap::before,
body.post-type-mep_events_reg_form.edit-php .wrap::before,
body.post-type-mep_events_review.edit-php .wrap::before,
body.post-type-mep_event_speaker.edit-php .wrap::after,
body.post-type-mep_waitlist_email.edit-php .wrap::after,
body.post-type-mep_events_reg_form.edit-php .wrap::after,
body.post-type-mep_events_review.edit-php .wrap::after {
	position: absolute;
	left: 50%;
}

body.post-type-mep_event_speaker.edit-php .wrap::before,
body.post-type-mep_waitlist_email.edit-php .wrap::before,
body.post-type-mep_events_reg_form.edit-php .wrap::before,
body.post-type-mep_events_review.edit-php .wrap::before {
	content: "";
	top: 160px;
	left: calc(50% - 18px);
	width: 36px;
	height: 36px;
	border: 3px solid #BFDBFE;
	border-top-color: #2563EB;
	border-radius: 50%;
	animation: mpwem-post-list-spin .8s linear infinite;
}

body.post-type-mep_event_speaker.edit-php .wrap::after,
body.post-type-mep_waitlist_email.edit-php .wrap::after,
body.post-type-mep_events_reg_form.edit-php .wrap::after,
body.post-type-mep_events_review.edit-php .wrap::after {
	content: "Loading\2026";
	top: 210px;
	transform: translateX(-50%);
	font-size: 13px;
	color: #64748B;
	white-space: nowrap;
}

@keyframes mpwem-post-list-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	body.post-type-mep_event_speaker.edit-php .wrap::before,
	body.post-type-mep_waitlist_email.edit-php .wrap::before,
	body.post-type-mep_events_reg_form.edit-php .wrap::before,
	body.post-type-mep_events_review.edit-php .wrap::before {
		animation: none;
	}
}

body.mpwem-post-list-ready.post-type-mep_event_speaker.edit-php .wrap,
body.mpwem-post-list-ready.post-type-mep_waitlist_email.edit-php .wrap,
body.mpwem-post-list-ready.post-type-mep_events_reg_form.edit-php .wrap,
body.mpwem-post-list-ready.post-type-mep_events_review.edit-php .wrap {
	min-height: calc(100vh - 100px);
}

body.mpwem-post-list-ready.post-type-mep_event_speaker.edit-php .wrap > *,
body.mpwem-post-list-ready.post-type-mep_waitlist_email.edit-php .wrap > *,
body.mpwem-post-list-ready.post-type-mep_events_reg_form.edit-php .wrap > *,
body.mpwem-post-list-ready.post-type-mep_events_review.edit-php .wrap > * {
	visibility: visible;
}

body.mpwem-post-list-ready.post-type-mep_event_speaker.edit-php .wrap::before,
body.mpwem-post-list-ready.post-type-mep_waitlist_email.edit-php .wrap::before,
body.mpwem-post-list-ready.post-type-mep_events_reg_form.edit-php .wrap::before,
body.mpwem-post-list-ready.post-type-mep_events_review.edit-php .wrap::before,
body.mpwem-post-list-ready.post-type-mep_event_speaker.edit-php .wrap::after,
body.mpwem-post-list-ready.post-type-mep_waitlist_email.edit-php .wrap::after,
body.mpwem-post-list-ready.post-type-mep_events_reg_form.edit-php .wrap::after,
body.mpwem-post-list-ready.post-type-mep_events_review.edit-php .wrap::after {
	content: none;
}

/* ---------- Heading ---------- */

.wrap.mpwem-post-list-modern-wrap hr.wp-header-end {
	display: none;
}

.wrap.mpwem-post-list-modern-wrap h1.wp-heading-inline {
	margin-left: 0;
	padding-left: 30px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #0F172A;
}

.wrap.mpwem-post-list-modern-wrap .page-title-action {
	display: none !important;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-subtitle {
	margin: 4px 0 16px;
	padding-left: 30px;
	max-width: 640px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748B;
}

/* ---------- Hero header + stats bar (Speakers & Reviews only) ----------
   Rendered server-side (all_admin_notices) by MPWEM_Post_List_Modern::
   render_hero_header(), before .wrap, so it is never affected by the
   JS-driven loading placeholder above and needs no JS to display.
   The native h1 + JS-inserted subtitle would otherwise duplicate this
   hero's title/subtitle, so they're hidden here — only for these two
   post types; the Waitlist Email / Reg Form screens keep the plain
   heading treatment untouched. */

body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap h1.wp-heading-inline,
body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap .mpwem-post-list-subtitle,
body.post-type-mep_events_review .wrap.mpwem-post-list-modern-wrap h1.wp-heading-inline,
body.post-type-mep_events_review .wrap.mpwem-post-list-modern-wrap .mpwem-post-list-subtitle {
	display: none;
}

.mpwem-post-list-hero-wrap {
	max-width: 1340px;
	margin: 20px 20px 0;
	box-sizing: border-box;
}

.mpwem-post-list-hero-wrap * {
	box-sizing: border-box;
}

.mpwem-post-list-hero-wrap .bde-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 22px 24px;
	margin: 0 0 16px;
	background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 55%);
	border: 1px solid #E4E9F0;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.mpwem-post-list-hero-wrap .bde-hero-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	flex: 1 1 280px;
}

.mpwem-post-list-hero-wrap .bde-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #2563EB;
	margin: 0 0 8px;
	line-height: 1.3;
}

.mpwem-post-list-hero-wrap .bde-eyebrow .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 14px;
}

.mpwem-post-list-hero-wrap .bde-title {
	font-size: 23px;
	font-weight: 700;
	color: #0F172A;
	margin: 0 0 6px;
	line-height: 1.25;
}

.mpwem-post-list-hero-wrap .bde-subtitle {
	font-size: 14px;
	color: #64748B;
	max-width: 560px;
	margin: 0;
	line-height: 1.5;
}

.mpwem-post-list-hero-wrap .bde-hero-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #E4E9F0;
	border-radius: 10px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #0F172A;
	flex: 0 0 auto;
	white-space: nowrap;
}

.mpwem-post-list-hero-wrap .bde-hero-badge .dashicons {
	color: #2563EB;
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}

.mpwem-post-list-hero-wrap .mep-stats-bar {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.mpwem-post-list-hero-wrap .mep-stat-card {
	flex: 1;
	min-width: 160px;
	background: #fff;
	border: 1px solid #E4E9F0;
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.mpwem-post-list-hero-wrap .mep-stat-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EFF6FF;
	color: #2563EB;
	font-size: 20px;
}

.mpwem-post-list-hero-wrap .mep-stat-card:nth-child(2) .mep-stat-icon {
	background: #ECFDF5;
	color: #059669;
}

.mpwem-post-list-hero-wrap .mep-stat-card:nth-child(3) .mep-stat-icon {
	background: #FFF7ED;
	color: #ea580c;
}

.mpwem-post-list-hero-wrap .mep-stat-value {
	font-size: 22px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.2;
}

.mpwem-post-list-hero-wrap .mep-stat-label {
	font-size: 12px;
	color: #64748B;
}

@media screen and (max-width: 782px) {
	.mpwem-post-list-hero-wrap {
		margin: 12px 12px 0;
	}

	.mpwem-post-list-hero-wrap .bde-hero {
		padding: 18px 16px;
	}

	.mpwem-post-list-hero-wrap .bde-title {
		font-size: 20px;
	}

	.mpwem-post-list-hero-wrap .bde-hero-badge {
		align-self: flex-start;
	}
}

/* ---------- Layout: main + promo ---------- */

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-layout {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
	padding-left: 10px;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-main {
	flex: 1 1 420px;
	min-width: 0;
	max-width: 100%;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-aside {
	flex: 0 0 260px;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-card {
	background: #FFFFFF;
	border: 1px solid #E4E9F0;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	overflow: visible;
}

/* ---------- Status filters / search ---------- */

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 14px;
	width: 100%;
	box-sizing: border-box;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-toolbar ul.subsubsub {
	margin: 0;
	padding: 0;
	float: none;
	color: transparent;
	flex: 1 1 auto;
	min-width: 0;
}

.wrap.mpwem-post-list-modern-wrap ul.subsubsub {
	margin: 0 0 14px;
	padding: 0;
	float: none;
	color: transparent;
}

.wrap.mpwem-post-list-modern-wrap ul.subsubsub li {
	display: inline-flex;
}

.wrap.mpwem-post-list-modern-wrap ul.subsubsub a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	margin: 0 6px 6px 0;
	border-radius: 8px;
	background: #F1F5F9;
	color: #64748B;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.wrap.mpwem-post-list-modern-wrap ul.subsubsub a .count {
	color: #94A3B8;
	font-weight: 500;
}

.wrap.mpwem-post-list-modern-wrap ul.subsubsub a.current,
.wrap.mpwem-post-list-modern-wrap ul.subsubsub a:hover {
	background: #EFF6FF;
	color: #2563EB;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-toolbar .search-box {
	float: none;
	margin: 0;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex: 0 0 auto;
}

.wrap.mpwem-post-list-modern-wrap .search-box {
	float: none;
	margin: 0 0 14px;
	display: flex;
	gap: 8px;
	align-items: center;
}

.wrap.mpwem-post-list-modern-wrap .search-box input[type="search"] {
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	padding: 6px 12px;
	min-height: 34px;
	box-shadow: none;
}

.wrap.mpwem-post-list-modern-wrap .search-box input[type="submit"] {
	border-radius: 8px;
	height: 34px;
	border-color: #2563EB;
	color: #2563EB;
	background: #fff;
	font-weight: 600;
	box-shadow: none;
}

/* ---------- Tablenav + Add button ---------- */

.wrap.mpwem-post-list-modern-wrap .tablenav {
	height: auto;
	margin: 0 0 14px;
	padding: 0;
}

.wrap.mpwem-post-list-modern-wrap .tablenav.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-tablenav-right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-tablenav-right .tablenav-pages {
	float: none;
	margin: 0;
	height: auto;
}

.wrap.mpwem-post-list-modern-wrap .tablenav .displaying-num {
	font-size: 13px;
	color: #64748B;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-add-post-btn {
	box-sizing: border-box;
	height: 34px;
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
	border-radius: 8px;
	background: #2563EB;
	border-color: #2563EB;
	color: #FFFFFF;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	box-shadow: none;
	text-shadow: none;
	line-height: 1;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-add-post-btn:hover {
	background: #1D4ED8;
	border-color: #1D4ED8;
	color: #FFFFFF;
}

.wrap.mpwem-post-list-modern-wrap .tablenav .actions.bulkactions {
	display: none;
}

/* Date filter (Filter by date) */
.wrap.mpwem-post-list-modern-wrap .tablenav .alignleft.actions:not(.bulkactions) {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	box-sizing: border-box;
}

.wrap.mpwem-post-list-modern-wrap .tablenav .alignleft.actions:not(.bulkactions)::before {
	content: "Date";
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748B;
	padding: 0 4px 0 6px;
	white-space: nowrap;
}

.wrap.mpwem-post-list-modern-wrap .tablenav .alignleft.actions:not(.bulkactions) label.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.wrap.mpwem-post-list-modern-wrap #filter-by-date {
	min-width: 150px;
	height: 34px;
	margin: 0;
	padding: 0 28px 0 12px;
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 10px center;
	background-size: 10px;
	color: #0F172A;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.wrap.mpwem-post-list-modern-wrap #filter-by-date:hover {
	border-color: #94A3B8;
}

.wrap.mpwem-post-list-modern-wrap #filter-by-date:focus {
	border-color: #2563EB;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	outline: none;
}

.wrap.mpwem-post-list-modern-wrap #post-query-submit {
	height: 34px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #2563EB;
	border-radius: 8px;
	background: #fff;
	color: #2563EB;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
}

.wrap.mpwem-post-list-modern-wrap #post-query-submit:hover {
	background: #EFF6FF;
	border-color: #1D4ED8;
	color: #1D4ED8;
}

.wrap.mpwem-post-list-modern-wrap #post-query-submit:focus {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	outline: none;
}

/* ---------- Promo ---------- */

.mpwem-promo-panel {
	background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 55%);
	border: 1px solid #BFDBFE;
	border-radius: 12px;
	padding: 22px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.mpwem-promo-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #2563EB;
	background: #FFFFFF;
	border: 1px solid #BFDBFE;
	border-radius: 999px;
	padding: 3px 10px;
	margin-bottom: 12px;
}

.mpwem-promo-panel h2 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.35;
}

.mpwem-promo-body {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	color: #64748B;
}

.mpwem-promo-features {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.mpwem-promo-features li {
	position: relative;
	padding: 0 0 10px 22px;
	font-size: 13px;
	line-height: 1.5;
	color: #334155;
}

.mpwem-promo-features li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: #2563EB;
	font-weight: 700;
	font-size: 12px;
}

.mpwem-promo-panel .mpwem-promo-cta {
	display: block;
	width: 100%;
	text-align: center;
	background: #2563EB;
	border-color: #2563EB;
	color: #FFFFFF;
	font-weight: 600;
	font-size: 13.5px;
	padding: 9px 14px;
	height: auto;
	line-height: 1.5;
	border-radius: 8px;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none;
}

.mpwem-promo-panel .mpwem-promo-cta:hover {
	background: #1D4ED8;
	border-color: #1D4ED8;
	color: #FFFFFF;
}

/* ---------- Table ---------- */

.wrap.mpwem-post-list-modern-wrap table.wp-list-table {
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: visible;
	width: 100%;
	table-layout: fixed;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table thead th,
.wrap.mpwem-post-list-modern-wrap table.wp-list-table thead td {
	background: #F8FAFC;
	border-bottom: 1px solid #E5E7EB;
	color: #64748B;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 10px 12px;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table thead th.column-title,
.wrap.mpwem-post-list-modern-wrap table.wp-list-table thead th.column-name,
.wrap.mpwem-post-list-modern-wrap table.wp-list-table tbody td.column-title,
.wrap.mpwem-post-list-modern-wrap table.wp-list-table tbody td.column-name {
	padding-left: 14px;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table thead th.column-mpwem-actions,
.wrap.mpwem-post-list-modern-wrap table.wp-list-table tbody td.column-mpwem-actions {
	padding-right: 14px;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table thead th a {
	color: #64748B;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #F1F5F9;
	font-size: 13px;
	color: #0F172A;
	vertical-align: middle;
	overflow: visible;
	word-wrap: break-word;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table tbody tr:last-child td {
	border-bottom: none;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table.striped tbody tr {
	background: transparent;
}

.wrap.mpwem-post-list-modern-wrap table.wp-list-table tbody tr:hover td {
	background: #F8FAFC;
}

.wrap.mpwem-post-list-modern-wrap .column-title,
.wrap.mpwem-post-list-modern-wrap .column-name {
	width: auto;
}

.wrap.mpwem-post-list-modern-wrap .column-title .row-title,
.wrap.mpwem-post-list-modern-wrap .column-name .row-title {
	display: inline-block;
	max-width: 100%;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: #2563EB;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
}

.wrap.mpwem-post-list-modern-wrap .row-actions {
	display: none;
}

.wrap.mpwem-post-list-modern-wrap .check-column {
	display: none !important;
	width: 0 !important;
	padding: 0 !important;
	border: none !important;
}

/* ---------- Date / status pills ---------- */

.wrap.mpwem-post-list-modern-wrap .column-date {
	width: 130px;
	color: #64748B;
	font-size: 12px;
	line-height: 1.4;
	white-space: normal;
}

/* ---------- Speakers: image + event ---------- */

body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap th.column-mep_speaker_image,
body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap td.column-mep_speaker_image {
	width: 72px;
	padding-left: 14px;
	padding-right: 8px;
	vertical-align: middle;
}

body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap th.column-mep_speaker_id,
body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap td.column-mep_speaker_id {
	width: 72px;
	white-space: nowrap;
}

body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap th.column-mep_speaker_desc,
body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap td.column-mep_speaker_desc {
	display: none;
}

body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap th.column-mep_speaker_event,
body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap td.column-mep_speaker_event {
	width: auto;
	min-width: 45%;
	vertical-align: middle;
}

body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap th.column-title,
body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap td.column-title {
	width: 30%;
}

body.post-type-mep_event_speaker .wrap.mpwem-post-list-modern-wrap .column-date {
	display: none;
}

.mpwem-speaker-list-thumb {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #E2E8F0;
	background: #F1F5F9;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.mpwem-speaker-list-thumb--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #94A3B8;
}

.mpwem-speaker-list-thumb--empty .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.mpwem-speaker-list-desc {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 420px;
}

.mpwem-speaker-list-role {
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	line-height: 1.35;
}

.mpwem-speaker-list-bio {
	font-size: 12px;
	line-height: 1.45;
	color: #64748B;
}

.mpwem-speaker-list-desc-empty {
	font-size: 12px;
	color: #94A3B8;
	font-style: italic;
}

.mpwem-speaker-list-events {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	max-width: 100%;
}

.mpwem-speaker-list-event {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: min(100%, 220px);
	padding: 5px 10px 5px 6px;
	background: #F1F5F9;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	color: #334155;
	text-decoration: none;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.mpwem-speaker-list-event-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.mpwem-speaker-list-event-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #DBEAFE;
	color: #2563EB;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
}

a.mpwem-speaker-list-event:hover {
	background: #EFF6FF;
	border-color: #BFDBFE;
	color: #1D4ED8;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(37, 99, 235, .08);
}

a.mpwem-speaker-list-event:hover .mpwem-speaker-list-event-icon {
	background: #BFDBFE;
}

.mpwem-speaker-list-event-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: #EEF2FF;
	border: 1px solid #E0E7FF;
	color: #4338CA;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.mpwem-speaker-list-event-empty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #F8FAFC;
	border: 1px dashed #E2E8F0;
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
	color: #94A3B8;
	line-height: 1.25;
}

/* ---------- Speakers AJAX pagination ---------- */

.wrap.mpwem-post-list-modern-wrap #posts-filter table.wp-list-table.is-ajax-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.mpwem-speaker-ajax-pagination {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #F1F5F9;
}

.mpwem-speaker-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.mpwem-speaker-pagination-info {
	font-size: 12.5px;
	color: #64748B;
	font-weight: 500;
}

.mpwem-speaker-pagination-links {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.mpwem-speaker-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background: #fff;
	color: #475569;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
}

.mpwem-speaker-page-btn .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.mpwem-speaker-page-btn:hover:not(:disabled):not(.is-active) {
	border-color: #2563EB;
	color: #2563EB;
	background: #EFF6FF;
}

.mpwem-speaker-page-btn.is-active {
	background: #2563EB;
	border-color: #2563EB;
	color: #fff;
	cursor: default;
}

.mpwem-speaker-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ---------- Add Speaker modal ---------- */

body.mpwem-speaker-modal-open {
	overflow: hidden;
}

.mpwem-speaker-modal {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.mpwem-speaker-modal.is-open {
	display: flex;
}

.mpwem-speaker-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.48);
	backdrop-filter: blur(2px);
}

.mpwem-speaker-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #E2E8F0;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
	padding: 22px 22px 18px;
}

.mpwem-speaker-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: #F1F5F9;
	color: #64748B;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.mpwem-speaker-modal__close:hover {
	background: #E2E8F0;
	color: #0F172A;
}

.mpwem-speaker-modal__header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-right: 36px;
	margin-bottom: 18px;
}

.mpwem-speaker-modal__icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #EFF6FF;
	color: #2563EB;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.mpwem-speaker-modal__icon--danger {
	background: #FEF2F2;
	color: #E11D48;
}

.mpwem-speaker-modal__header h2 {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.3;
}

.mpwem-speaker-modal__header p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: #64748B;
}

.mpwem-speaker-modal__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mpwem-speaker-modal__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mpwem-speaker-modal__field--full {
	grid-column: 1 / -1;
}

.mpwem-speaker-modal__field label {
	font-size: 12px;
	font-weight: 600;
	color: #334155;
}

.mpwem-speaker-modal__field label span {
	color: #E11D48;
}

.mpwem-speaker-modal__field input[type="text"],
.mpwem-speaker-modal__field input[type="email"],
.mpwem-speaker-modal__field select,
.mpwem-speaker-modal__field textarea {
	width: 100%;
	border: 1.5px solid #E2E8F0;
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 13px;
	color: #0F172A;
	background: #fff;
	box-shadow: none;
	box-sizing: border-box;
	line-height: 1.4;
}

.mpwem-speaker-modal__field textarea {
	min-height: 96px;
	resize: vertical;
}

.mpwem-speaker-modal__field input:focus,
.mpwem-speaker-modal__field select:focus,
.mpwem-speaker-modal__field textarea:focus {
	border-color: #2563EB;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	outline: none;
}

/* Review modal star rating */
.mpwem-review-rating {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
	padding: 4px 0;
}

.mpwem-review-rating__star {
	display: inline-flex;
	cursor: pointer;
	margin: 0;
	padding: 2px;
}

.mpwem-review-rating__star input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mpwem-review-rating__star .dashicons {
	width: 28px;
	height: 28px;
	font-size: 28px;
	color: #E2E8F0;
	transition: color .12s ease, transform .12s ease;
}

.mpwem-review-rating__star:hover .dashicons,
.mpwem-review-rating__star:hover ~ .mpwem-review-rating__star .dashicons,
.mpwem-review-rating__star:has(input:checked) .dashicons,
.mpwem-review-rating__star:has(input:checked) ~ .mpwem-review-rating__star .dashicons {
	color: #F59E0B;
}

.mpwem-review-rating__star:hover .dashicons {
	transform: scale(1.08);
}

.mpwem-review-modal .mpwem-speaker-modal__icon {
	background: #FFFBEB;
	color: #D97706;
}

.mpwem-speaker-modal__image {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mpwem-speaker-modal__preview {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1.5px dashed #CBD5E1;
	background: #F8FAFC;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #94A3B8;
	flex: 0 0 auto;
}

.mpwem-speaker-modal__preview.has-image {
	border-style: solid;
	border-color: #E2E8F0;
}

.mpwem-speaker-modal__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mpwem-speaker-modal__preview .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.mpwem-speaker-modal__image-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.mpwem-speaker-modal__status {
	margin-top: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.4;
}

.mpwem-speaker-modal__status.is-error {
	background: #FEF2F2;
	color: #B91C1C;
	border: 1px solid #FECACA;
}

.mpwem-speaker-modal__status.is-success {
	background: #ECFDF5;
	color: #047857;
	border: 1px solid #A7F3D0;
}

.mpwem-speaker-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #F1F5F9;
}

.mpwem-speaker-modal__actions .button-primary {
	background: #2563EB;
	border-color: #2563EB;
	min-height: 34px;
	border-radius: 8px;
	font-weight: 600;
}

.mpwem-speaker-modal__actions .button-primary:hover {
	background: #1D4ED8;
	border-color: #1D4ED8;
}

.mpwem-speaker-modal__actions .button:not(.button-primary) {
	min-height: 34px;
	border-radius: 8px;
}

.mpwem-speaker-delete-modal__dialog {
	max-width: 440px;
}

.mpwem-speaker-delete-modal__name {
	margin: 0 0 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	font-size: 13.5px;
	font-weight: 600;
	color: #0F172A;
}

.mpwem-speaker-delete-confirm,
#mpwem-speaker-delete-confirm {
	background: #E11D48 !important;
	border-color: #E11D48 !important;
}

.mpwem-speaker-delete-confirm:hover,
#mpwem-speaker-delete-confirm:hover {
	background: #BE123C !important;
	border-color: #BE123C !important;
}

/* ---------- Speaker view details modal ---------- */

.mpwem-speaker-view-modal__dialog {
	max-width: 560px;
}

.mpwem-speaker-view-modal__loading {
	padding: 28px 8px;
	text-align: center;
	font-size: 13px;
	color: #64748B;
}

.mpwem-speaker-view-hero {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	padding-right: 28px;
}

.mpwem-speaker-view-avatar {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid #E2E8F0;
	background: #F8FAFC;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #94A3B8;
}

.mpwem-speaker-view-avatar.has-image {
	border-color: #BFDBFE;
}

.mpwem-speaker-view-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mpwem-speaker-view-avatar .dashicons {
	width: 28px;
	height: 28px;
	font-size: 28px;
}

.mpwem-speaker-view-hero-text h2 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.3;
}

.mpwem-speaker-view-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: #EFF6FF;
	color: #1D4ED8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.mpwem-speaker-view-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mpwem-speaker-view-item {
	padding: 12px;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	background: #F8FAFC;
}

.mpwem-speaker-view-item--full {
	grid-column: 1 / -1;
}

.mpwem-speaker-view-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748B;
}

.mpwem-speaker-view-value {
	font-size: 13px;
	line-height: 1.5;
	color: #0F172A;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.mpwem-speaker-view-events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mpwem-speaker-view-events a {
	color: #2563EB;
	font-weight: 600;
	text-decoration: none;
}

.mpwem-speaker-view-events a:hover {
	text-decoration: underline;
}

.mpwem-speaker-view-empty {
	margin: 0;
	font-size: 13px;
	color: #94A3B8;
	font-style: italic;
}

@media (max-width: 640px) {
	.mpwem-speaker-modal {
		padding: 12px;
	}
	.mpwem-speaker-modal__grid {
		grid-template-columns: 1fr;
	}
	.mpwem-speaker-modal__dialog {
		padding: 18px 16px 14px;
	}
	.mpwem-speaker-view-grid {
		grid-template-columns: 1fr;
	}
}

.wrap.mpwem-post-list-modern-wrap .post-state {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #FEF3C7;
	color: #B45309;
	font-size: 11px;
	font-weight: 600;
}

/* ---------- Actions column ---------- */

.wrap.mpwem-post-list-modern-wrap th.column-mpwem-actions,
.wrap.mpwem-post-list-modern-wrap td.column-mpwem-actions {
	width: 118px;
	text-align: right;
	white-space: nowrap;
	overflow: visible;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-row-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: 4px;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: transparent;
	color: #64748B;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	padding: 0;
	box-shadow: none;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-row-action-icon .dashicons {
	width: 15px;
	height: 15px;
	font-size: 15px;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-row-action-view:hover {
	background: #F0FDF4;
	border-color: #86EFAC;
	color: #15803D;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-row-action-preview:hover {
	background: #EFF6FF;
	border-color: #93C5FD;
	color: #1D4ED8;
}

/* ---------- Email template preview modal ---------- */

.mpwem-email-preview-modal__dialog {
	max-width: 720px;
	width: calc(100% - 32px);
}

.mpwem-email-preview-modal__header {
	padding-right: 36px;
	margin-bottom: 12px;
}

.mpwem-email-preview-modal__header h2 {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.3;
	color: #0F172A;
}

.mpwem-email-preview-modal__subtitle {
	margin: 0;
	font-size: 13px;
	color: #64748B;
}

.mpwem-email-preview-modal__frame-wrap {
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	background: #F1F5F9;
	overflow: hidden;
	min-height: 360px;
}

.mpwem-email-preview-modal__frame {
	display: block;
	width: 100%;
	height: min(70vh, 640px);
	border: 0;
	background: #fff;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-row-action-edit:hover {
	background: #EFF5FF;
	color: #2563EB;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-row-action-delete {
	color: #E11D48;
}

.wrap.mpwem-post-list-modern-wrap .mpwem-row-action-delete:hover {
	background: #FFF1F4;
	color: #9F1239;
}

.wrap.mpwem-post-list-modern-wrap .tablenav.bottom .actions,
.wrap.mpwem-post-list-modern-wrap .tablenav.bottom .bulkactions {
	display: none;
}

@media (max-width: 782px) {
	.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-main,
	.wrap.mpwem-post-list-modern-wrap .mpwem-post-list-aside {
		flex: 1 1 100%;
	}
}

/* ---------- Edit screen back button (post.php / post-new.php) ---------- */

body.post-type-mep_event_speaker.post-php #wpbody-content,
body.post-type-mep_waitlist_email.post-php #wpbody-content,
body.post-type-mep_events_reg_form.post-php #wpbody-content,
body.post-type-mep_events_review.post-php #wpbody-content,
body.post-type-mep_event_speaker.post-new-php #wpbody-content,
body.post-type-mep_waitlist_email.post-new-php #wpbody-content,
body.post-type-mep_events_reg_form.post-new-php #wpbody-content,
body.post-type-mep_events_review.post-new-php #wpbody-content {
	background: #F8FAFC;
}

.mpwem-editor-back-bar {
	max-width: 1340px;
	margin: 12px 20px 0;
}

.mpwem-editor-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	border: 1px solid #D0D9E6;
	border-radius: 10px;
	background: #fff;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mpwem-editor-back-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	color: #64748b;
}

.mpwem-editor-back-btn:hover,
.mpwem-editor-back-btn:focus {
	background: #EFF6FF;
	border-color: #BFDBFE;
	color: #2563EB;
	box-shadow: none;
}

.mpwem-editor-back-btn:hover .dashicons,
.mpwem-editor-back-btn:focus .dashicons {
	color: #2563EB;
}

@media screen and (max-width: 782px) {
	.mpwem-editor-back-bar {
		margin: 12px 12px 0;
	}
}
