/**
 * Entry / Participant List – frontend styles.
 *
 * @package RaffleForWooCommercePro
 * @since   1.1.0
 */

/* Container */
.rfwc-pro-entry-list {
	margin: 2em 0;
	font-size: 14px;
	line-height: 1.5;
}

/* Header */
.rfwc-pro-entry-list__header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
}

.rfwc-pro-entry-list__title {
	margin: 0;
	font-size: 1.25em;
	font-weight: 600;
	color: #1e1e1e;
}

.rfwc-pro-entry-list__count {
	font-size: 0.85em;
	color: #757575;
	background: #f0f0f1;
	padding: 2px 10px;
	border-radius: 10px;
	white-space: nowrap;
}

/* Toolbar */
.rfwc-pro-entry-list__toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.rfwc-pro-entry-list__search {
	flex: 1;
	max-width: 280px;
	padding: 8px 12px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 13px;
	background: #fff;
	transition: border-color 0.2s;
}

.rfwc-pro-entry-list__search:focus {
	outline: none;
	border-color: #7f54b3;
	box-shadow: 0 0 0 1px #7f54b3;
}

.rfwc-pro-entry-list__print-btn {
	padding: 8px 16px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
	font-size: 13px;
	color: #1e1e1e;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.rfwc-pro-entry-list__print-btn:hover {
	background: #f6f7f7;
	border-color: #c3c4c7;
}

/* Table */
.rfwc-pro-entry-list__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rfwc-pro-entry-list__table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.rfwc-pro-entry-list__table thead th {
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #50575e;
	background: #f6f7f7;
	border-bottom: 2px solid #dcdcde;
	white-space: nowrap;
}

.rfwc-pro-entry-list__table tbody td {
	padding: 8px 12px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
}

.rfwc-pro-entry-list__table tbody tr:hover td {
	background: #f9f9fc;
}

.rfwc-pro-entry-list__col-num {
	width: 50px;
	color: #999;
	font-size: 12px;
}

.rfwc-pro-entry-list__col-ticket code {
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: monospace;
	font-size: 13px;
	color: #7f54b3;
}

.rfwc-pro-entry-list__col-name {
	font-weight: 500;
}

.rfwc-pro-entry-list__col-city {
	color: #666;
}

.rfwc-pro-entry-list__col-date {
	color: #888;
	font-size: 13px;
	white-space: nowrap;
}

/* Loading */
.rfwc-pro-entry-list__loading {
	text-align: center;
	padding: 24px 12px !important;
	color: #999;
	font-style: italic;
}

/* Empty */
.rfwc-pro-entry-list__empty {
	text-align: center;
	padding: 24px 12px !important;
	color: #999;
}

/* Count only */
.rfwc-pro-entry-list__count-only {
	padding: 16px 0;
	color: #666;
	font-size: 15px;
}

/* Pagination */
.rfwc-pro-entry-list__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
	padding-top: 12px;
}

.rfwc-pro-entry-list__page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
	font-size: 16px;
	color: #1e1e1e;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.rfwc-pro-entry-list__page-btn:hover:not(:disabled) {
	background: #f6f7f7;
	border-color: #7f54b3;
	color: #7f54b3;
}

.rfwc-pro-entry-list__page-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.rfwc-pro-entry-list__page-info {
	font-size: 13px;
	color: #666;
}

.rfwc-pro-entry-list__page-current {
	font-weight: 600;
	color: #1e1e1e;
}

/* Responsive */
@media (max-width: 600px) {
	.rfwc-pro-entry-list__header {
		flex-wrap: wrap;
	}

	.rfwc-pro-entry-list__toolbar {
		flex-wrap: wrap;
	}

	.rfwc-pro-entry-list__search {
		max-width: 100%;
		width: 100%;
	}

	.rfwc-pro-entry-list__table thead th,
	.rfwc-pro-entry-list__table tbody td {
		padding: 6px 8px;
		font-size: 12px;
	}

	.rfwc-pro-entry-list__col-num {
		display: none;
	}
}
