/**
 * Aroma Laundry — Pricelist page: optimized UI/UX
 * Loads only on laundry-pricing-qatar page.
 */

/* ========== Section ========== */
body.aroma-pricelist-page .aroma-section,
#wrapper main#inner-wrap .aroma-section {
	box-sizing: border-box;
	max-width: 980px;
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
	background: #fff;
}

@media (min-width: 768px) {
	body.aroma-pricelist-page .aroma-section,
	#wrapper main#inner-wrap .aroma-section {
		padding: 3rem 1.5rem 4rem;
	}
}

/* ========== Page title ========== */
body.aroma-pricelist-page .aroma-section .aroma-page-header,
body.aroma-pricelist-page .aroma-section .aroma-page-title {
	margin: 0 0 0.25rem;
	font-size: 1.875rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* ========== Subtitle & intro ========== */
body.aroma-pricelist-page .aroma-section .pricelist-subtitle,
body.aroma-pricelist-page .aroma-section .aroma-entry-content > h2 {
	margin: 0 0 0.375rem;
	font-size: 1.0625rem;
	font-weight: 600;
	color: #4b5563;
}

body.aroma-pricelist-page .aroma-section .pricelist-intro,
body.aroma-pricelist-page .aroma-section .aroma-entry-content > p:first-of-type {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	color: #6b7280;
	line-height: 1.55;
	max-width: 42rem;
}

/* ========== Search toolbar ========== */
body.aroma-pricelist-page .aroma-section .dataTables_wrapper {
	margin-top: 0;
}

body.aroma-pricelist-page .aroma-section .dataTables_wrapper .row:first-child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

body.aroma-pricelist-page .aroma-section .dataTables_length {
	display: none;
}

body.aroma-pricelist-page .aroma-section .dataTables_filter {
	margin: 0;
	flex: 1;
	min-width: 200px;
	max-width: 320px;
}

body.aroma-pricelist-page .aroma-section .dataTables_filter label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #374151;
	width: 100%;
}

body.aroma-pricelist-page .aroma-section .dataTables_filter input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9375rem;
	min-width: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.aroma-pricelist-page .aroma-section .dataTables_filter input::placeholder {
	color: #9ca3af;
}

body.aroma-pricelist-page .aroma-section .dataTables_filter input:focus {
	border-color: #166534;
	outline: none;
	box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

body.aroma-pricelist-page .aroma-section .dataTables_paginate {
	display: none;
}

body.aroma-pricelist-page .aroma-section .dataTables_info {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0;
}

/* ========== Table wrapper ========== */
body.aroma-pricelist-page .aroma-section .tablepress-wrapper,
body.aroma-pricelist-page .aroma-section .aroma-entry-content .tablepress {
	margin: 0 0 2rem;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
	background: #fff;
	border: 1px solid #e5e7eb;
}

body.aroma-pricelist-page .aroma-section .tablepress-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

body.aroma-pricelist-page .aroma-section .tablepress-wrapper::-webkit-scrollbar {
	height: 8px;
}

body.aroma-pricelist-page .aroma-section .tablepress-wrapper::-webkit-scrollbar-track {
	background: #f3f4f6;
	border-radius: 4px;
}

body.aroma-pricelist-page .aroma-section .tablepress-wrapper::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 4px;
}

body.aroma-pricelist-page .aroma-section .tablepress-wrapper::-webkit-scrollbar-thumb:hover {
	background: #9ca3af;
}

body.aroma-pricelist-page .aroma-section .tablepress,
body.aroma-pricelist-page .aroma-section table.tablepress {
	width: 100% !important;
	max-width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.875rem;
}

/* ========== Header ========== */
body.aroma-pricelist-page .aroma-section .tablepress thead th,
body.aroma-pricelist-page .aroma-section table.tablepress thead th {
	background: #166534;
	color: #fff;
	font-weight: 600;
	font-size: 0.8125rem;
	line-height: 1.4;
	padding: 14px 12px;
	text-align: left;
	border: none;
	white-space: normal;
	letter-spacing: 0.01em;
}

body.aroma-pricelist-page .aroma-section .tablepress thead th:first-child,
body.aroma-pricelist-page .aroma-section table.tablepress thead th:first-child {
	text-align: left;
	min-width: 140px;
	padding-left: 16px;
}

body.aroma-pricelist-page .aroma-section .tablepress thead th:nth-child(2),
body.aroma-pricelist-page .aroma-section table.tablepress thead th:nth-child(2) {
	text-align: right;
	min-width: 120px;
	padding-right: 16px;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Price columns: subtle group divider between Normal and Express */
body.aroma-pricelist-page .aroma-section .tablepress thead th:nth-child(3),
body.aroma-pricelist-page .aroma-section table.tablepress thead th:nth-child(3) {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

body.aroma-pricelist-page .aroma-section .tablepress thead th:nth-child(6),
body.aroma-pricelist-page .aroma-section table.tablepress thead th:nth-child(6) {
	border-left: 2px solid rgba(255, 255, 255, 0.35);
	padding-left: 14px;
}

body.aroma-pricelist-page .aroma-section .tablepress thead th:nth-child(n+3),
body.aroma-pricelist-page .aroma-section table.tablepress thead th:nth-child(n+3) {
	text-align: center;
	min-width: 4rem;
}

@media (min-width: 640px) {
	body.aroma-pricelist-page .aroma-section .tablepress thead th,
	body.aroma-pricelist-page .aroma-section table.tablepress thead th {
		font-size: 0.875rem;
		padding: 15px 14px;
	}
}

/* ========== Body rows ========== */
body.aroma-pricelist-page .aroma-section .tablepress tbody tr,
body.aroma-pricelist-page .aroma-section table.tablepress tbody tr {
	transition: background-color 0.15s ease;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody tr:nth-child(even),
body.aroma-pricelist-page .aroma-section table.tablepress tbody tr:nth-child(even) {
	background: #fafafa;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody tr:hover,
body.aroma-pricelist-page .aroma-section table.tablepress tbody tr:hover {
	background: #ecfdf5;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody td,
body.aroma-pricelist-page .aroma-section table.tablepress tbody td {
	padding: 11px 12px;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #374151;
	border-bottom: 1px solid #e5e7eb;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody td:first-child,
body.aroma-pricelist-page .aroma-section table.tablepress tbody td:first-child {
	font-weight: 500;
	color: #111827;
	text-align: left;
	padding-left: 16px;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody td:nth-child(2),
body.aroma-pricelist-page .aroma-section table.tablepress tbody td:nth-child(2) {
	text-align: right;
	direction: rtl;
	font-weight: 500;
	color: #4b5563;
	padding-right: 16px;
	border-left: 1px solid #e5e7eb;
}

/* Price cells: tabular numbers, group divider */
body.aroma-pricelist-page .aroma-section .tablepress tbody td:nth-child(3),
body.aroma-pricelist-page .aroma-section table.tablepress tbody td:nth-child(3) {
	border-left: 1px solid #e5e7eb;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody td:nth-child(6),
body.aroma-pricelist-page .aroma-section table.tablepress tbody td:nth-child(6) {
	border-left: 2px solid #e5e7eb;
	padding-left: 14px;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody td:nth-child(n+3),
body.aroma-pricelist-page .aroma-section table.tablepress tbody td:nth-child(n+3) {
	text-align: center;
	min-width: 3.5rem;
	font-variant-numeric: tabular-nums;
}

body.aroma-pricelist-page .aroma-section .tablepress tbody tr:last-child td,
body.aroma-pricelist-page .aroma-section table.tablepress tbody tr:last-child td {
	border-bottom: none;
}

@media (min-width: 640px) {
	body.aroma-pricelist-page .aroma-section .tablepress tbody td,
	body.aroma-pricelist-page .aroma-section table.tablepress tbody td {
		padding: 12px 14px;
	}
}

/* ========== Sticky header ========== */
@media (min-width: 768px) {
	body.aroma-pricelist-page .aroma-section .tablepress thead th,
	body.aroma-pricelist-page .aroma-section table.tablepress thead th {
		position: sticky;
		top: 80px;
		z-index: 5;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
	}
}

/* ========== Accessibility ========== */
body.aroma-pricelist-page .aroma-section .tablepress th:focus-visible,
body.aroma-pricelist-page .aroma-section .tablepress td:focus-visible {
	outline: 2px solid #166534;
	outline-offset: 2px;
}

body.aroma-pricelist-page .aroma-section .tablepress th:focus,
body.aroma-pricelist-page .aroma-section .tablepress td:focus {
	outline: 2px solid #166534;
	outline-offset: 2px;
}

/* ========== Overrides ========== */
body.aroma-pricelist-page .aroma-section .tablepress.tablepress-id-1 {
	border: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	body.aroma-pricelist-page .aroma-section .tablepress tbody tr,
	body.aroma-pricelist-page .aroma-section .tablepress tbody tr:hover {
		transition: none;
	}
	body.aroma-pricelist-page .aroma-section .dataTables_filter input {
		transition: none;
	}
}
