/* =========================================================
   MEP Custom Orders Page — Admin Styles
   ========================================================= */

/* ---- Full-width override for WP admin content area ---- */
#wpbody-content {
	padding-right: 0 !important;
}

/* ---- Wrap ---- */
.mep-orders-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 24px 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: #1e293b;
}

/* ---- Header ---- */
.mep-orders-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0 20px;
	padding-top: 4px;
}

.mep-orders-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mep-orders-title .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #6366f1;
}

.mep-orders-subtitle {
	color: #64748b;
	font-size: 13px;
	margin: 4px 0 0;
}

.mep-pro-badge {
	display: inline-flex;
	align-items: center;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 2px 7px;
	border-radius: 20px;
	vertical-align: middle;
	line-height: 1.6;
}

.mep-orders-header-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-shrink: 0;
}

/* ---- Buttons ---- */
.mep-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: none;
	transition: all 0.15s ease;
	line-height: 1.4;
}

.mep-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	margin-top: 1px;
}

.mep-btn-outline {
	background: #fff;
	border: 1.5px solid #cbd5e1;
	color: #475569;
}

.mep-btn-outline:hover {
	border-color: #6366f1;
	color: #6366f1;
	background: #f8f7ff;
}

.mep-btn-ghost {
	background: transparent;
	border: 1.5px solid transparent;
	color: #64748b;
}

.mep-btn-ghost:hover {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #1e293b;
}

.mep-btn-primary {
	background: #6366f1;
	border: 1.5px solid #6366f1;
	color: #fff;
}

.mep-btn-primary:hover {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #fff;
}

.mep-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ---- Stats Bar ---- */
.mep-stats-bar {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.mep-stat-card {
	flex: 1;
	min-width: 160px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	transition: box-shadow 0.15s;
}

.mep-stat-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.07);
}

.mep-stat-icon {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #6366f1;
	background: #ede9fe;
	border-radius: 8px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mep-stat-info {
	display: flex;
	flex-direction: column;
}

.mep-stat-value {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.mep-stat-label {
	font-size: 11.5px;
	color: #64748b;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---- Filter Panel ---- */
.mep-filter-panel {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.mep-filter-panel-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.mep-filter-panel-header .dashicons {
	color: #6366f1;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.mep-filter-toggle {
	margin-left: auto;
	background: none;
	border: none;
	cursor: pointer;
	color: #94a3b8;
	padding: 2px;
	border-radius: 4px;
	transition: color 0.15s;
	display: flex;
	align-items: center;
}

.mep-filter-toggle:hover {
	color: #6366f1;
}

.mep-filter-toggle .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.mep-filter-toggle.collapsed .dashicons {
	transform: rotate(180deg);
}

.mep-filter-body {
	padding: 20px;
	transition: all 0.2s ease;
}

.mep-filter-body.mep-hidden {
	display: none;
}

.mep-filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.mep-filter-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.mep-filter-field label {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mep-filter-field input[type="text"],
.mep-filter-field input[type="date"],
.mep-filter-field select {
	width: 100%;
	padding: 8px 12px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	color: #1e293b;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	line-height: 1.4;
	box-sizing: border-box;
	height: 38px;
}

.mep-filter-field input[type="text"]:focus,
.mep-filter-field input[type="date"]:focus,
.mep-filter-field select:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.12);
	outline: none;
}

.mep-input-icon-wrap {
	position: relative;
}

.mep-input-icon-wrap .dashicons {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.mep-input-icon-wrap input {
	padding-left: 32px !important;
}

.mep-filter-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

/* ---- Table Wrap ---- */
.mep-table-wrap {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.mep-table-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #f1f5f9;
	background: #f8fafc;
}

.mep-result-count {
	font-size: 12.5px;
	color: #64748b;
	font-weight: 500;
}

.mep-table-loader {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #6366f1;
	font-weight: 500;
}

.mep-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #c7d2fe;
	border-top-color: #6366f1;
	border-radius: 50%;
	animation: mep-spin 0.7s linear infinite;
}

@keyframes mep-spin {
	to { transform: rotate(360deg); }
}

/* ---- Orders Table ---- */
.mep-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.mep-orders-table thead tr {
	background: #f8fafc;
}

.mep-orders-table thead th {
	padding: 12px 16px;
	text-align: left;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}

.mep-orders-table tbody tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.1s;
}

.mep-orders-table tbody tr:last-child {
	border-bottom: none;
}

.mep-orders-table tbody tr:hover {
	background: #fafbff;
}

.mep-orders-table tbody td {
	padding: 13px 16px;
	vertical-align: middle;
	color: #374151;
	line-height: 1.5;
}

.mep-total-row td {
	background: #f8fafc;
	border-top: 2px solid #e2e8f0 !important;
}

/* ---- Column Specific ---- */
.mep-col-id { white-space: nowrap; }
.mep-col-total { white-space: nowrap; text-align: right; }
.mep-col-date { white-space: nowrap; font-size: 12px; color: #64748b; }
.mep-col-gateway { white-space: nowrap; }

.mep-order-link {
	font-weight: 700;
	color: #4f46e5;
	text-decoration: none;
	font-size: 13.5px;
}

.mep-order-link:hover {
	color: #4338ca;
	text-decoration: underline;
}

/* "View order" link under the order number */
.mep-view-order-link {
	display: block;
	margin-top: 3px;
	font-size: 11.5px;
	font-weight: 600;
	color: #6366f1;
	text-decoration: none;
}
.mep-view-order-link:hover { color: #4338ca; text-decoration: underline; }

/* ---- Bulk actions + selection column ---- */
.mep-col-check {
	width: 36px;
	text-align: center;
	white-space: nowrap;
}
.mep-col-check input[type="checkbox"] { margin: 0; vertical-align: middle; }

.mep-bulk-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	margin-right: 16px;
}
.mep-bulk-select {
	font-size: 12.5px;
	height: 30px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #334155;
	max-width: 220px;
}
#mep-bulk-apply {
	height: 30px;
	border-radius: 6px;
}
.mep-bulk-count {
	font-size: 12px;
	font-weight: 600;
	color: #6366f1;
	min-width: 64px;
}

.mep-email-link {
	color: #6366f1;
	text-decoration: none;
	font-size: 12px;
}

.mep-email-link:hover { text-decoration: underline; }

.mep-phone {
	font-size: 12px;
	color: #64748b;
}

.mep-muted { color: #94a3b8; }

.mep-gateway-label {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
}

/* ---- Badges ---- */
.mep-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 20px;
	letter-spacing: 0.04em;
	vertical-align: middle;
	margin-left: 4px;
}

.mep-badge-native {
	background: #d1fae5;
	color: #065f46;
}

.mep-badge-woo {
	background: #ede9fe;
	color: #5b21b6;
}

/* ---- Status Pills ---- */
.mep-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.mep-status-publish,
.mep-status-paid,
.mep-status-completed,
.mep-status-wc-completed {
	background: #d1fae5;
	color: #065f46;
}

.mep-status-pending,
.mep-status-wc-pending,
.mep-status-on-hold,
.mep-status-wc-on-hold {
	background: #fef3c7;
	color: #92400e;
}

.mep-status-cancelled,
.mep-status-wc-cancelled,
.mep-status-failed,
.mep-status-wc-failed {
	background: #fee2e2;
	color: #991b1b;
}

.mep-status-refunded,
.mep-status-wc-refunded {
	background: #e0e7ff;
	color: #3730a3;
}

.mep-status-processing,
.mep-status-wc-processing {
	background: #dbeafe;
	color: #1e40af;
}

.mep-status-inline {
	font-size: 12px;
}

/* ---- No Orders ---- */
.mep-no-orders {
	text-align: center;
	padding: 60px 20px !important;
	color: #94a3b8;
}

.mep-no-orders .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	display: block;
	margin: 0 auto 12px;
	color: #cbd5e1;
}

.mep-no-orders p {
	margin: 0;
	font-size: 14px;
}

/* ---- Pagination ---- */
.mep-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 20px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
}

.mep-pagination-info {
	font-size: 12.5px;
	color: #64748b;
}

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

.mep-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	color: #475569;
	cursor: pointer;
	transition: all 0.15s;
}

.mep-page-btn:hover {
	border-color: #6366f1;
	color: #6366f1;
	background: #f8f7ff;
}

.mep-page-btn-active {
	background: #6366f1;
	border-color: #6366f1;
	color: #fff;
}

.mep-page-btn-active:hover {
	background: #4f46e5;
	color: #fff;
}

.mep-page-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.mep-page-btn-disabled,
.mep-page-btn[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.mep-page-edge .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
}

.mep-page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	color: #94a3b8;
	font-size: 14px;
	letter-spacing: 0.05em;
	user-select: none;
}

.mep-pagination-jump {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #64748b;
}

.mep-pagination-jump input[type="number"] {
	width: 60px;
	padding: 6px 8px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	text-align: center;
	color: #1e293b;
	-moz-appearance: textfield;
}

.mep-pagination-jump input[type="number"]::-webkit-outer-spin-button,
.mep-pagination-jump input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.mep-pagination-jump input[type="number"]:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.12);
	outline: none;
}

.mep-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

/* ---- Order Detail Page ---- */
.mep-order-detail-wrap .mep-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.mep-detail-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.mep-detail-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mep-detail-card-header .dashicons {
	color: #6366f1;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.mep-detail-card-body {
	padding: 20px;
}

.mep-dl {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 10px 16px;
	margin: 0;
}

.mep-dl dt {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	align-self: center;
}

.mep-dl dd {
	font-size: 13.5px;
	color: #1e293b;
	margin: 0;
	align-self: center;
}

.mep-detail-section {
	margin-bottom: 24px;
}

.mep-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
}

.mep-section-title .dashicons {
	color: #6366f1;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* ---- Responsive ---- */
@media ( max-width: 1200px ) {
	.mep-orders-wrap {
		padding: 0 16px 40px;
	}
}

@media ( max-width: 960px ) {
	.mep-filter-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mep-stats-bar {
		gap: 12px;
	}
	.mep-stat-card {
		min-width: unset;
		flex: 1 1 calc( 50% - 6px );
	}
	.mep-orders-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media ( max-width: 782px ) {
	/* WP collapses sidebar at 782px — reclaim that space */
	.mep-orders-wrap {
		padding: 0 12px 40px;
	}
	.mep-filter-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mep-stats-bar {
		flex-wrap: wrap;
	}
	.mep-stat-card {
		flex: 1 1 calc( 50% - 6px );
	}
	.mep-pagination {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

@media ( max-width: 640px ) {
	.mep-orders-wrap {
		padding: 0 8px 40px;
	}
	.mep-filter-grid {
		grid-template-columns: 1fr;
	}
	.mep-orders-header {
		flex-direction: column;
	}
	.mep-orders-header-actions {
		width: 100%;
	}
	.mep-orders-header-actions .mep-btn {
		width: 100%;
		justify-content: center;
	}
	.mep-stat-card {
		flex: 1 1 100%;
	}
	/* Card-style rows on very small screens */
	.mep-orders-table thead {
		display: none;
	}
	.mep-orders-table,
	.mep-orders-table tbody {
		display: block;
	}
	.mep-orders-table tbody tr {
		display: block;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		margin: 8px 0;
		padding: 4px 0;
		background: #fff;
	}
	.mep-orders-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 8px 14px;
		border-bottom: 1px solid #f8fafc;
		font-size: 12.5px;
	}
	.mep-orders-table tbody td:last-child {
		border-bottom: none;
	}
	.mep-orders-table tbody td::before {
		content: attr(data-label);
		font-weight: 700;
		color: #64748b;
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		flex-shrink: 0;
		margin-right: 12px;
	}
	.mep-pagination-links {
		flex-wrap: wrap;
	}
	.mep-pagination-jump {
		width: 100%;
	}
	.mep-dl {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.mep-detail-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Order Status Change
   ========================================================= */
.mep-status-change-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mep-status-select {
	height: 36px;
	padding: 0 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
	min-width: 140px;
}

.mep-status-select:focus {
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}

.mep-btn-sm {
	padding: 6px 14px !important;
	font-size: 12px !important;
	height: 36px;
}

.mep-status-feedback {
	font-size: 12px;
	font-weight: 600;
}

.mep-feedback-success {
	color: #059669;
}

.mep-feedback-error {
	color: #dc2626;
}

/* =========================================================
   Order Notes & History
   ========================================================= */
.mep-add-note-form {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
}

.mep-note-form-row {
	margin-bottom: 10px;
}

.mep-note-form-row:last-child {
	margin-bottom: 0;
}

.mep-note-textarea {
	width: 100%;
	min-height: 80px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
	resize: vertical;
	font-family: inherit;
}

.mep-note-textarea:focus {
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}

.mep-note-form-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mep-note-type-select {
	height: 36px;
	padding: 0 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
}

.mep-notes-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mep-note-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
	border-left: 4px solid #d1d5db;
}

.mep-note-private {
	border-left-color: #6366f1;
}

.mep-note-customer {
	border-left-color: #f59e0b;
}

.mep-note-system {
	border-left-color: #94a3b8;
	background: #f8fafc;
}

.mep-note-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.mep-note-type-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.mep-note-private .mep-note-type-badge {
	background: #eef2ff;
	color: #4f46e5;
}

.mep-note-customer .mep-note-type-badge {
	background: #fef3c7;
	color: #d97706;
}

.mep-note-system .mep-note-type-badge {
	background: #f1f5f9;
	color: #64748b;
}

.mep-note-author {
	font-weight: 600;
	font-size: 13px;
	color: #1e293b;
}

.mep-note-date {
	font-size: 12px;
	color: #94a3b8;
	margin-left: auto;
}

.mep-note-delete {
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	transition: all 0.15s ease;
}

.mep-note-delete:hover {
	color: #dc2626;
	background: #fef2f2;
}

.mep-note-delete .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.mep-note-content {
	font-size: 13px;
	color: #374151;
	line-height: 1.6;
	white-space: pre-wrap;
}

.mep-no-notes {
	text-align: center;
	padding: 30px 20px;
	color: #94a3b8;
}

.mep-no-notes .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	display: block;
	margin: 0 auto 8px;
}

/* =========================================================
   WooCommerce-style Order Detail Layout
   ========================================================= */
.mep-order-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 20px;
	align-items: start;
}

.mep-order-main {
	min-width: 0;
}

.mep-order-sidebar {
	position: sticky;
	top: 32px;
}

/* Sidebar Cards */
.mep-sidebar-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 16px;
	overflow: hidden;
}

.mep-sidebar-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-weight: 600;
	font-size: 14px;
	color: #1e293b;
}

.mep-sidebar-card-header .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #6366f1;
}

.mep-sidebar-card-body {
	padding: 16px;
}

/* Sidebar Fields */
.mep-sidebar-field {
	margin-bottom: 12px;
}

.mep-sidebar-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.mep-sidebar-select {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
}

.mep-sidebar-btn {
	width: 100%;
	justify-content: center;
	margin-top: 8px;
}

/* Sidebar Definition List */
.mep-sidebar-dl {
	margin: 0;
}

.mep-sidebar-dl dt {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-top: 10px;
	margin-bottom: 2px;
}

.mep-sidebar-dl dt:first-child {
	margin-top: 0;
}

.mep-sidebar-dl dd {
	margin: 0 0 4px;
	font-size: 13px;
	color: #1e293b;
}

/* Notes Card - Scrollable */
.mep-notes-card .mep-sidebar-card-body {
	padding: 12px;
}

.mep-notes-card .mep-add-note-form {
	margin-bottom: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px;
}

.mep-notes-card .mep-note-textarea {
	min-height: 60px;
	font-size: 12px;
	padding: 8px;
}

.mep-notes-card .mep-note-form-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.mep-notes-card .mep-note-type-select {
	flex: 1;
	height: 32px;
	font-size: 12px;
	padding: 0 8px;
}

.mep-notes-card .mep-btn-sm {
	height: 32px;
	padding: 0 14px;
	font-size: 12px;
}

.mep-notes-list {
	max-height: 500px;
	overflow-y: auto;
	padding-right: 4px;
}

.mep-notes-list::-webkit-scrollbar {
	width: 6px;
}

.mep-notes-list::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 3px;
}

.mep-notes-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

.mep-notes-list::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Compact Notes for Sidebar */
.mep-notes-card .mep-note-item {
	padding: 10px 12px;
	margin-bottom: 8px;
	border-radius: 8px;
}

.mep-notes-card .mep-note-header {
	gap: 6px;
	margin-bottom: 6px;
}

.mep-notes-card .mep-note-type-badge {
	font-size: 10px;
	padding: 1px 6px;
}

.mep-notes-card .mep-note-author {
	font-size: 12px;
}

.mep-notes-card .mep-note-date {
	font-size: 11px;
}

.mep-notes-card .mep-note-content {
	font-size: 12px;
}

.mep-notes-card .mep-no-notes {
	padding: 20px 10px;
}

.mep-notes-card .mep-no-notes .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

/* Status Feedback */
.mep-status-feedback {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	min-height: 18px;
}

/* Responsive */
@media (max-width: 1200px) {
	.mep-order-layout {
		grid-template-columns: 1fr;
	}
	.mep-order-sidebar {
		position: static;
	}
}

/* =========================================================
   WooCommerce-faithful Order Detail Theme
   Scoped to .mep-order-detail-wrap so the list view is
   untouched. Mirrors the WooCommerce "Edit order" screen:
   postbox panels, WC purple accent, items table, and the
   signature order-notes timeline with speech-bubble notes.
   ========================================================= */
.mep-order-detail-wrap {
	color: #2c3338;
}

/* ---- Header ---- */
.mep-order-detail-wrap .mep-orders-title {
	font-size: 1.3em !important;
	font-weight: 600 !important;
}

.mep-order-detail-wrap .mep-orders-title .dashicons {
	color: #7f54b3;
}

.mep-order-detail-wrap .mep-status-inline {
	border-radius: 4px;
}

/* ---- Panels (postbox look) ---- */
.mep-order-detail-wrap .mep-detail-card,
.mep-order-detail-wrap .mep-sidebar-card {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.mep-order-detail-wrap .mep-detail-card-header,
.mep-order-detail-wrap .mep-sidebar-card-header {
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	padding: 12px 16px;
}

.mep-order-detail-wrap .mep-detail-card-header .dashicons,
.mep-order-detail-wrap .mep-sidebar-card-header .dashicons {
	color: #7f54b3;
}

/* ---- Definition lists ---- */
.mep-order-detail-wrap .mep-dl dt,
.mep-order-detail-wrap .mep-sidebar-dl dt {
	color: #50575e;
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
}

.mep-order-detail-wrap .mep-dl dd,
.mep-order-detail-wrap .mep-sidebar-dl dd {
	color: #1d2327;
}

.mep-order-detail-wrap .mep-dl a,
.mep-order-detail-wrap .mep-sidebar-dl a {
	color: #2271b1;
}

.mep-order-detail-wrap .mep-dl a:hover,
.mep-order-detail-wrap .mep-sidebar-dl a:hover {
	color: #135e96;
}

/* ---- Section titles ---- */
.mep-order-detail-wrap .mep-section-title {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #1d2327 !important;
}

.mep-order-detail-wrap .mep-section-title .dashicons {
	color: #7f54b3;
}

/* ---- Items / attendees table (WooCommerce style) ---- */
.mep-order-detail-wrap .mep-table-wrap {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: none;
}

.mep-order-detail-wrap .mep-orders-table thead tr {
	background: #f6f7f7;
}

.mep-order-detail-wrap .mep-orders-table thead th {
	background: #f6f7f7;
	color: #2c3338;
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
	font-weight: 600;
	border-bottom: 1px solid #dcdcde;
}

.mep-order-detail-wrap .mep-orders-table tbody td {
	color: #2c3338;
	border-bottom: 1px solid #f0f0f1;
}

.mep-order-detail-wrap .mep-orders-table tbody tr:hover {
	background: #fbfbfc;
}

.mep-order-detail-wrap .mep-total-row td {
	background: #f6f7f7;
	border-top: 2px solid #dcdcde !important;
}

.mep-order-detail-wrap .mep-orders-table a {
	color: #2271b1;
}

/* ---- Status pills → WooCommerce status labels ---- */
.mep-order-detail-wrap .mep-status-pill {
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
}

/* ---- Sidebar primary button (WC purple) ---- */
.mep-order-detail-wrap .mep-btn-primary {
	background: #7f54b3;
	border-color: #7f54b3;
}

.mep-order-detail-wrap .mep-btn-primary:hover {
	background: #6b46a0;
	border-color: #6b46a0;
}

.mep-order-detail-wrap .mep-btn-outline:hover {
	border-color: #7f54b3;
	color: #7f54b3;
	background: #f7f3fb;
}

.mep-order-detail-wrap .mep-sidebar-select:focus,
.mep-order-detail-wrap .mep-note-textarea:focus {
	border-color: #7f54b3;
	box-shadow: 0 0 0 1px #7f54b3;
}

/* =========================================================
   Order Notes — WooCommerce timeline
   ========================================================= */
.mep-order-detail-wrap .mep-notes-list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 520px;
	overflow-y: auto;
}

.mep-order-detail-wrap .mep-note-item {
	position: relative;
	margin: 0 0 18px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

.mep-order-detail-wrap .mep-note-content {
	position: relative;
	padding: 10px 12px;
	background: #efefef;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
	color: #2c3338;
}

/* Speech-bubble pointer */
.mep-order-detail-wrap .mep-note-content::after {
	content: "";
	position: absolute;
	left: 18px;
	bottom: -10px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 10px 0 0;
	border-color: #efefef transparent transparent transparent;
}

.mep-order-detail-wrap .mep-note-content p {
	margin: 0 0 0.5em;
}

.mep-order-detail-wrap .mep-note-content p:last-child {
	margin-bottom: 0;
}

/* Customer notes → blue bubble */
.mep-order-detail-wrap .customer-note .mep-note-content {
	background: #a7cedc;
}

.mep-order-detail-wrap .customer-note .mep-note-content::after {
	border-color: #a7cedc transparent transparent transparent;
}

/* System notes → muted mauve bubble */
.mep-order-detail-wrap .system-note .mep-note-content {
	background: #d7cad2;
}

.mep-order-detail-wrap .system-note .mep-note-content::after {
	border-color: #d7cad2 transparent transparent transparent;
}

.mep-order-detail-wrap .mep-note-tag {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #14546f;
	margin-bottom: 4px;
}

.mep-order-detail-wrap .mep-note-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 10px 0 0;
	padding: 0 4px;
	font-size: 11px;
	color: #787c82;
}

.mep-order-detail-wrap .mep-note-date {
	font-style: normal;
	border-bottom: none;
	text-decoration: none;
}

.mep-order-detail-wrap .mep-note-delete {
	color: #a00;
	text-decoration: none;
	white-space: nowrap;
	visibility: hidden;
}

.mep-order-detail-wrap .mep-note-item:hover .mep-note-delete {
	visibility: visible;
}

.mep-order-detail-wrap .mep-note-delete:hover {
	color: #d63638;
	text-decoration: underline;
}

/* Empty state inside the <ul> */
.mep-order-detail-wrap .mep-no-notes {
	list-style: none;
	text-align: center;
	padding: 24px 12px;
	color: #a7aaad;
}

/* =========================================================
   Order Detail — Attached design (final theme, overrides above)
   Scoped to .mep-order-detail-wrap
   ========================================================= */
.mep-order-detail-wrap { color: #1e293b; }

/* ---- Top header bar ---- */
.mep-order-detail-wrap .mep-od-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid #e9eaf3;
	border-radius: 14px;
	padding: 16px 20px;
	margin: 16px 0 20px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.mep-od-head-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mep-od-head-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.mep-od-title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.2 !important;
}
.mep-od-placed {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 0;
	color: #64748b;
	font-size: 13px;
}
.mep-od-placed .dashicons { font-size: 15px; width: 15px; height: 15px; color: #94a3b8; }
.mep-od-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mep-od-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 9px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #64748b;
	text-decoration: none;
	transition: all .15s ease;
}
.mep-od-icon-btn:hover { border-color: #6366f1; color: #6366f1; background: #f5f5ff; }
.mep-od-icon-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.mep-od-pdf-btn {
	height: 38px;
	padding: 0 16px;
	border-radius: 9px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background: #6366f1;
	border: 1px solid #6366f1;
	color: #fff;
	text-decoration: none;
	transition: all .15s ease;
}
.mep-od-pdf-btn:hover { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.mep-od-pdf-btn .dashicons { font-size: 17px; width: 17px; height: 17px; }
.mep-od-resend-btn {
	height: 38px;
	padding: 0 16px;
	border-radius: 9px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #475569;
	transition: all .15s ease;
}
.mep-od-resend-btn:hover { border-color: #6366f1; color: #6366f1; background: #f5f5ff; }
.mep-od-resend-btn:disabled { opacity: .6; cursor: default; }
.mep-od-resend-btn .dashicons { font-size: 17px; width: 17px; height: 17px; }

/* ---- Cards ---- */
.mep-order-detail-wrap .mep-detail-card,
.mep-order-detail-wrap .mep-sidebar-card {
	background: #fff;
	border: 1px solid #e9eaf3;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04);
	overflow: hidden;
	margin-bottom: 18px;
}
.mep-order-detail-wrap .mep-detail-card-header,
.mep-order-detail-wrap .mep-sidebar-card-header {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 18px;
	background: #eef0fe;
	border-bottom: 1px solid #e4e7fb;
	font-size: 14px;
	font-weight: 600;
	color: #312e81;
	text-transform: none;
	letter-spacing: 0;
}
.mep-order-detail-wrap .mep-detail-card-header .dashicons,
.mep-order-detail-wrap .mep-sidebar-card-header .dashicons {
	color: #6366f1;
	font-size: 18px;
	width: 18px;
	height: 18px;
}
.mep-od-bolt { display: inline-flex; align-items: center; color: #6366f1; }
.mep-order-detail-wrap .mep-detail-card-body,
.mep-order-detail-wrap .mep-sidebar-card-body { padding: 18px; }

/* ---- Order Details definition list ---- */
.mep-order-detail-wrap .mep-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	margin: 0;
	gap: 0;
}
.mep-order-detail-wrap .mep-dl dt {
	color: #64748b;
	font-size: 13.5px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	padding: 11px 0;
	border-bottom: 1px solid #f1f2f9;
	align-self: center;
}
.mep-order-detail-wrap .mep-dl dd {
	text-align: right;
	color: #1e293b;
	font-size: 13.5px;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid #f1f2f9;
	align-self: center;
}
.mep-order-detail-wrap .mep-dl dt:nth-last-of-type(1),
.mep-order-detail-wrap .mep-dl dd:nth-last-of-type(1) { border-bottom: none; }
.mep-order-detail-wrap .mep-dl a { color: #6366f1; text-decoration: none; font-weight: 500; }
.mep-order-detail-wrap .mep-dl a:hover { text-decoration: underline; }
.mep-dd-strong { font-weight: 700 !important; color: #0f172a !important; }
.mep-dd-amount { font-weight: 700 !important; color: #6366f1 !important; }
.mep-od-tag {
	display: inline-block;
	background: #eef0fe;
	color: #4f46e5;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	padding: 3px 9px;
	border-radius: 6px;
}

/* ---- Detail tables ---- */
.mep-order-detail-wrap .mep-od-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mep-order-detail-wrap .mep-od-table thead th {
	text-align: left;
	padding: 11px 18px;
	background: #fafafe;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #94a3b8;
	border-bottom: 1px solid #eef0f6;
	white-space: nowrap;
}
.mep-order-detail-wrap .mep-od-table th.mep-od-num,
.mep-order-detail-wrap .mep-od-table td.mep-od-num { text-align: right; }
.mep-order-detail-wrap .mep-od-table tbody td {
	padding: 13px 18px;
	border-bottom: 1px solid #f4f5fa;
	color: #334155;
	vertical-align: middle;
}
.mep-order-detail-wrap .mep-od-table tbody tr:last-child td { border-bottom: none; }
.mep-od-strong { font-weight: 700; color: #0f172a; }
.mep-order-detail-wrap .mep-od-grand td {
	background: #fafafe;
	font-weight: 700;
	color: #0f172a;
	border-top: 1px solid #eef0f6;
	border-bottom: none;
}
.mep-order-detail-wrap .mep-od-grand td.mep-od-num { color: #6366f1; }
.mep-od-empty-cell { text-align: center; color: #94a3b8; padding: 26px 18px !important; }
.mep-od-field { font-weight: 600; color: #0f172a; width: 40%; }

/* Attendee cells */
.mep-od-att-name { display: block; font-weight: 600; color: #4f46e5; text-decoration: none; }
.mep-od-att-name:hover { text-decoration: underline; }
.mep-od-att-email { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.mep-od-att-type { display: block; color: #334155; }
.mep-od-att-qty { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.mep-od-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #64748b; }

/* Empty state (form responses) */
.mep-od-empty { text-align: center; padding: 34px 18px; color: #94a3b8; }
.mep-od-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #f1f2fb;
	color: #a5b4fc;
	margin-bottom: 12px;
}
.mep-od-empty-icon .dashicons { font-size: 26px; width: 26px; height: 26px; }
.mep-od-empty p { margin: 0; font-size: 13.5px; }

/* ---- Status pills (design palette) ---- */
.mep-order-detail-wrap .mep-status-pill {
	border-radius: 7px;
	padding: 3px 11px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0;
}
.mep-order-detail-wrap .mep-status-inline { font-size: 12px; }
.mep-order-detail-wrap .mep-status-processing { background: #ede9fe; color: #6d28d9; }

/* ---- Buttons ---- */
.mep-order-detail-wrap .mep-btn-primary {
	background: #6366f1;
	border-color: #6366f1;
	border-radius: 9px;
}
.mep-order-detail-wrap .mep-btn-primary:hover { background: #4f46e5; border-color: #4f46e5; }
.mep-order-detail-wrap .mep-sidebar-btn { width: 100%; justify-content: center; padding: 10px; font-size: 13.5px; }

/* ---- Sidebar field ---- */
.mep-order-detail-wrap .mep-sidebar-field label {
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
	margin-bottom: 7px;
}
.mep-order-detail-wrap .mep-sidebar-select {
	width: 100%;
	height: 40px;
	border: 1px solid #e2e8f0;
	border-radius: 9px;
	padding: 0 12px;
	font-size: 13.5px;
	background: #fff;
}

/* ---- Customer card ---- */
.mep-cust-id {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f2f9;
	margin-bottom: 12px;
}
.mep-cust-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #6366f1;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}
.mep-cust-meta { display: flex; flex-direction: column; min-width: 0; }
.mep-cust-name { font-weight: 600; color: #0f172a; font-size: 14px; }
.mep-cust-email { color: #6366f1; font-size: 12.5px; text-decoration: none; word-break: break-all; }
.mep-cust-email:hover { text-decoration: underline; }
.mep-cust-row { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 13px; padding: 6px 0; }
.mep-cust-row .dashicons { color: #94a3b8; font-size: 16px; width: 16px; height: 16px; }
.mep-cust-muted { color: #94a3b8; }
.mep-cust-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6366f1;
	font-size: 13px;
	text-decoration: none;
	padding: 8px 0 0;
	font-weight: 500;
}
.mep-cust-link:hover { text-decoration: underline; }
.mep-cust-link .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* ---- Add-note form ---- */
.mep-order-detail-wrap .mep-add-note-form {
	background: #fff;
	border: 1px solid #e9eaf3;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 16px;
}
.mep-order-detail-wrap .mep-note-textarea {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 9px 11px;
	font-size: 13px;
	resize: vertical;
	min-height: 46px;
	box-sizing: border-box;
}
.mep-order-detail-wrap .mep-note-form-actions { display: flex; gap: 8px; margin-top: 9px; }
.mep-order-detail-wrap .mep-note-type-select {
	flex: 1;
	height: 34px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 12.5px;
	padding: 0 8px;
	background: #fff;
}
.mep-order-detail-wrap .mep-note-form-actions .mep-btn-sm { height: 34px; border-radius: 8px; padding: 0 16px; }

/* ---- Notes timeline ---- */
.mep-order-detail-wrap .mep-notes-timeline {
	list-style: none;
	margin: 0;
	padding: 4px 0 0;
	position: relative;
	max-height: 430px;
	overflow-y: auto;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item {
	position: relative;
	margin: 0;
	padding: 0 0 18px 22px;
	border: none;
	background: transparent;
	border-radius: 0;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 13px;
	bottom: -5px;
	width: 2px;
	background: #e9eaf3;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item:last-child::before { display: none; }
.mep-order-detail-wrap .mep-note-dot {
	position: absolute;
	left: 0;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #6366f1;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #c7d2fe;
}
.mep-order-detail-wrap .customer-note .mep-note-dot { background: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.mep-order-detail-wrap .private-note .mep-note-dot { background: #64748b; box-shadow: 0 0 0 2px #e2e8f0; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-content {
	background: transparent !important;
	padding: 0 !important;
	border: none !important;
	font-size: 13px;
	color: #334155;
	line-height: 1.5;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-content::after { display: none !important; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-content p { margin: 0; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-content strong { color: #0f172a; font-weight: 700; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #d97706;
	margin-bottom: 3px;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
	padding: 0;
	font-size: 10.5px;
	color: #9ca3af;
	letter-spacing: .04em;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-date { font-style: normal; border: none; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-delete { color: #dc2626; text-decoration: none; visibility: hidden; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item:hover .mep-note-delete { visibility: visible; }

/* ---- Print ---- */
@media print {
	#adminmenumain, #wpadminbar, #wpfooter, .mep-od-head-actions { display: none !important; }
	.mep-order-detail-wrap .mep-order-sidebar { break-inside: avoid; }
}

/* ---- Order Details + Purchased Tickets side by side ---- */
.mep-order-detail-wrap .mep-od-two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	align-items: start;
	margin-bottom: 18px;
}
.mep-order-detail-wrap .mep-od-two-col .mep-detail-card { margin-bottom: 0; }

/* ---- Compact order-notes timeline ---- */
.mep-order-detail-wrap .mep-notes-card .mep-sidebar-card-body { padding: 12px; }
.mep-order-detail-wrap .mep-add-note-form { padding: 10px; margin-bottom: 10px; }
.mep-order-detail-wrap .mep-notes-timeline { padding-top: 2px; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item { padding: 0 0 11px 20px; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item::before { top: 11px; bottom: -2px; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-dot { top: 3px; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-content { font-size: 12.5px; line-height: 1.4; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-meta { margin-top: 2px; }

/* ---- Order Notes — compact card-style timeline (match attached design) ---- */
.mep-order-detail-wrap .mep-add-note-form { padding: 0; background: transparent; border: none; margin-bottom: 10px; }
.mep-order-detail-wrap .mep-add-note-form .mep-note-textarea { min-height: 58px; border-radius: 9px; padding: 9px 11px; font-size: 12.5px; }
.mep-order-detail-wrap .mep-add-note-form .mep-note-form-actions { margin-top: 8px; }
.mep-order-detail-wrap .mep-note-type-select { height: 34px; border-radius: 8px; }
.mep-order-detail-wrap .mep-note-form-actions .mep-btn-sm { height: 34px; border-radius: 8px; padding: 0 18px; }

.mep-order-detail-wrap .mep-notes-timeline { padding-top: 2px; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item { padding: 0 0 9px 22px; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item::before {
	left: 4px;
	top: 12px;
	bottom: -1px;
	width: 2px;
	background: #e5e7f2;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-dot {
	left: 1px;
	top: 11px;
	width: 8px;
	height: 8px;
	background: #c2c7d6;
	border: none;
	box-shadow: none;
}
/* Most recent note highlighted, like the design */
.mep-order-detail-wrap .mep-notes-timeline .mep-note-item:first-child .mep-note-dot { background: #4f46e5; }

.mep-order-detail-wrap .mep-notes-timeline .mep-note-body {
	background: #f4f5fc;
	border-radius: 9px;
	padding: 8px 11px;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-content {
	font-size: 12.5px;
	line-height: 1.4;
	color: #334155;
}
.mep-order-detail-wrap .mep-notes-timeline .mep-note-content strong { color: #1e293b; font-weight: 700; }
.mep-order-detail-wrap .mep-notes-timeline .mep-note-meta {
	margin-top: 4px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .03em;
	color: #94a3b8;
}
