/* ===== Test Catalog Enquiry — styles ===== */

.tce-container { max-width: 100%; font-family: inherit; }

.tce-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	background: #eaf4ff;
	padding: 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.tce-filter-field { display: flex; flex-direction: column; min-width: 180px; flex: 1 1 180px; }
.tce-filter-field label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #0a5b9e;
	margin-bottom: 6px;
}
.tce-filter-field select,
.tce-filter-field input[type="text"] {
	padding: 8px 10px;
	border: 1px solid #b9d6ef;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
}
.tce-search-field { flex: 1 1 220px; }

.tce-table-wrap {
	overflow-x: auto;
	border: 1px solid #e1e8ee;
	border-radius: 6px;
	-webkit-overflow-scrolling: touch;
}
.tce-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
	font-size: 14px;
}
.tce-table thead th {
	background: #003a6b;
	color: #fff;
	text-align: left;
	padding: 10px 12px;
	position: sticky;
	top: 0;
	white-space: nowrap;
}
.tce-table tbody td {
	padding: 9px 12px;
	border-bottom: 1px solid #eef2f6;
	vertical-align: top;
}
.tce-table tbody tr:nth-child(even) { background: #f7fbff; }
.tce-table tbody tr.tce-row-selected { background: #dff3e3 !important; }
.tce-col-check { width: 40px; text-align: center; }
.tce-loading, .tce-empty { text-align: center; padding: 24px; color: #667; }

.tce-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
	flex-wrap: wrap;
}
.tce-pagination button {
	padding: 6px 12px;
	border: 1px solid #b9d6ef;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}
.tce-pagination button.active { background: #0a5b9e; color: #fff; border-color: #0a5b9e; }
.tce-pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* Sticky enquiry bar */
.tce-enquiry-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	background: #003a6b;
	color: #fff;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-shadow: 0 -4px 14px rgba(0,0,0,.15);
}
.tce-btn-primary {
	background: #ff7a00;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}
.tce-btn-primary:hover { background: #e56d00; }

/* Modal */
.tce-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.tce-modal {
	background: #fff;
	border-radius: 8px;
	padding: 28px;
	max-width: 560px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	position: relative;
}
.tce-modal h3 { margin-top: 0; }
.tce-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}
.tce-selected-summary {
	background: #f5f8fb;
	border: 1px solid #e1e8ee;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 16px;
	max-height: 160px;
	overflow-y: auto;
	font-size: 13px;
}
.tce-selected-summary ul { margin: 0; padding-left: 18px; }

/* Responsive */
@media (max-width: 640px) {
	.tce-filters { flex-direction: column; gap: 10px; }
	.tce-enquiry-bar { flex-direction: column; align-items: stretch; text-align: center; }
	.tce-modal { padding: 20px; }
}
