/**
 * SC-ICG Clinic Report — Frontend Style
 * Version: 1.2.0
 * WooCommerce My Account 健檢報告 Tab
 */

/* ════════════════════════════════════════════════════
   Filters & Search
   ════════════════════════════════════════════════════ */

.sc-icg-report-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.sc-icg-report-filter-input {
	padding: 8px 12px;
	font-size: 13px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #333;
	outline: none;
	transition: border-color 0.2s;
}

.sc-icg-report-filter-input:focus {
	border-color: #62513F;
}

#sc-icg-report-search {
	flex: 1;
	min-width: 160px;
}

/* ════════════════════════════════════════════════════
   Loading
   ════════════════════════════════════════════════════ */

.sc-icg-report-loading {
	text-align: center;
	color: #999;
	padding: 40px 20px;
	font-size: 14px;
}

/* ════════════════════════════════════════════════════
   My Account Report Table
   ════════════════════════════════════════════════════ */

.sc-icg-report-my-reports h3 {
	font-size: 18px;
	font-weight: 600;
	color: #62513F;
	margin-bottom: 16px;
}

.sc-icg-report-my-reports .sc-icg-report-empty {
	text-align: center;
	color: #999;
	padding: 40px 20px;
	font-size: 14px;
}

.sc-icg-report-table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.sc-icg-report-table.shop_table thead th {
	background: #62513F;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 12px 16px;
	text-align: left;
	letter-spacing: 0.5px;
}

.sc-icg-report-table.shop_table thead th:first-child {
	border-radius: 6px 0 0 0;
}

.sc-icg-report-table.shop_table thead th:last-child {
	border-radius: 0 6px 0 0;
}

.sc-icg-report-table.shop_table tbody td {
	padding: 12px 16px;
	font-size: 14px;
	border-bottom: 1px solid #E8E6E1;
	color: #333;
}

.sc-icg-report-table.shop_table tbody tr:hover td {
	background: #FAFAF8;
}

.sc-icg-report-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	background: #62513F !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.sc-icg-report-view-btn:hover {
	background: #4E4132 !important;
	color: #fff !important;
}

.sc-icg-report-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	background: #fff !important;
	color: #62513F !important;
	border: 1px solid #62513F !important;
	border-radius: 6px !important;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.2s ease;
	margin-left: 6px;
}

.sc-icg-report-download-btn:hover {
	background: #F8F7F5 !important;
	color: #4E4132 !important;
}

/* ════════════════════════════════════════════════════
   Pagination
   ════════════════════════════════════════════════════ */

.sc-icg-report-pagination {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.sc-icg-report-page-info {
	font-size: 13px;
	color: #888;
	margin-right: 8px;
}

.sc-icg-report-page-btn {
	padding: 6px 12px;
	font-size: 13px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.2s;
}

.sc-icg-report-page-btn:hover {
	border-color: #62513F;
	color: #62513F;
}

.sc-icg-report-page-btn.active {
	background: #62513F;
	color: #fff;
	border-color: #62513F;
}

/* ════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════ */

@media (max-width: 600px) {
	.sc-icg-report-filters {
		flex-direction: column;
	}

	.sc-icg-report-filter-input {
		width: 100%;
	}

	.sc-icg-report-table.shop_table thead {
		display: none;
	}

	.sc-icg-report-table.shop_table tbody tr {
		display: block;
		border: 1px solid #E8E6E1;
		border-radius: 8px;
		margin-bottom: 12px;
		padding: 12px;
	}

	.sc-icg-report-table.shop_table tbody td {
		display: block;
		text-align: left;
		padding: 4px 0;
		border-bottom: none;
		font-size: 13px;
	}

	.sc-icg-report-table.shop_table tbody td:before {
		content: attr(data-label);
		font-weight: 600;
		color: #62513F;
		margin-right: 8px;
		font-size: 12px;
	}

	.sc-icg-report-table.shop_table tbody td:last-child {
		padding-top: 8px;
	}
}
