/**
 * WooFacture Frontend Styles
 *
 * Styles for the My Account invoices tab.
 *
 * @package WooFacture
 */

/* ==========================================================================
   My Account Invoices Table
   ========================================================================== */

.woofacture-invoices {
	margin-top: 10px;
}

.woofacture-invoices h3 {
	margin-bottom: 15px;
	font-size: 1.3em;
}

.woofacture-invoices-table {
	width: 100%;
	border-collapse: collapse;
}

.woofacture-invoices-table thead th {
	text-align: left;
	padding: 10px 12px;
	font-weight: 600;
	border-bottom: 2px solid #e0e0e0;
	font-size: 0.9em;
	color: #555;
}

.woofacture-invoices-table tbody td {
	padding: 12px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.woofacture-invoices-table tbody tr:hover {
	background-color: #f9f9f9;
}

.woofacture-invoices-table tbody tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   Download Button
   ========================================================================== */

.woofacture-download-btn {
	display: inline-block;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.woofacture-download-btn:hover {
	opacity: 0.9;
}

.woofacture-no-pdf {
	color: #999;
	font-style: italic;
	font-size: 0.9em;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.woofacture-pagination {
	margin-top: 20px;
	text-align: center;
}

.woofacture-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 3px;
	color: #333;
	font-size: 13px;
	transition: all 0.2s ease;
}

.woofacture-pagination .page-numbers:hover {
	background-color: #f0f0f0;
	border-color: #bbb;
}

.woofacture-pagination .page-numbers.current {
	background-color: #0073aa;
	border-color: #0073aa;
	color: #fff;
	font-weight: 600;
}

.woofacture-pagination .page-numbers.prev,
.woofacture-pagination .page-numbers.next {
	font-weight: 700;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
	.woofacture-invoices-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.woofacture-invoices-table thead {
		display: none;
	}

	.woofacture-invoices-table tbody,
	.woofacture-invoices-table tbody tr,
	.woofacture-invoices-table tbody td {
		display: block;
		width: 100%;
	}

	.woofacture-invoices-table tbody tr {
		margin-bottom: 15px;
		padding: 10px;
		border: 1px solid #e0e0e0;
		border-radius: 4px;
		background: #fff;
	}

	.woofacture-invoices-table tbody td {
		padding: 6px 10px;
		border-bottom: none;
		text-align: left;
	}

	.woofacture-invoices-table tbody td::before {
		content: attr(data-title) ": ";
		font-weight: 600;
		display: inline-block;
		min-width: 80px;
	}

	.woofacture-download-btn {
		display: block;
		text-align: center;
		margin-top: 8px;
	}
}

@media screen and (max-width: 480px) {
	.woofacture-invoices h3 {
		font-size: 1.1em;
	}

	.woofacture-pagination .page-numbers {
		padding: 4px 8px;
		font-size: 12px;
	}
}
