/* Scope */
.fhcb-search {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 15px 40px;
	font-family: 'Sarabun', sans-serif;
	color: #334155;
}

/* Page Header */
.fhcb-search .page-header {
	border-bottom: none !important;
	margin: 40px 0 30px !important;
	text-align: center;
	padding: 0 !important;
}
.fhcb-search .page-header h2 {
	color: #166534 !important;
	font-weight: 600 !important;
	margin-top: 0 !important;
	font-size: 28px !important;
	border: none !important;
}
.fhcb-search .page-header h2 i {
	color: #22c55e;
	margin-right: 10px;
	width: auto !important;
}
.fhcb-search .page-header p {
	color: #64748b;
	margin-top: 8px;
	font-size: 16px;
}

/* Search Box */
.fhcb-search .search-wrapper {
	max-width: 800px;
	margin: 0 auto 30px;
}
.fhcb-search .fhcb-search-bar {
	display: flex;
	align-items: center;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fhcb-search .fhcb-search-bar:focus-within {
	border-color: #22c55e;
	box-shadow: 0 0 0 3px rgba(34,197,94,0.10);
}
.fhcb-search .filter-status {
	height: 52px;
	width: 160px;
	flex-shrink: 0;
	border: none;
	border-radius: 0;
	font-size: 15px;
	font-weight: 500;
	color: #475569;
	background: #f8fafc;
	cursor: pointer;
	padding: 0 32px 0 16px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2394a3b8' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	outline: none;
}
.fhcb-search .filter-status:focus {
	background: #f0fdf4;
	color: #166534;
}
.fhcb-search .fhcb-search-divider {
	width: 1px;
	height: 30px;
	background: #e2e8f0;
	flex-shrink: 0;
}
.fhcb-search .fhcb-search-input {
	flex: 1;
	height: 52px;
	border: none;
	font-size: 16px;
	color: #334155;
	padding: 0 16px;
	outline: none;
	background: transparent;
}
.fhcb-search .fhcb-search-input::placeholder {
	color: #94a3b8;
}
.fhcb-search .btn-search {
	height: 52px;
	padding: 0 28px;
	font-size: 16px;
	font-weight: 500;
	background: #16a34a;
	border: none;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease;
}
.fhcb-search .btn-search:hover {
	background: #15803d;
}
.fhcb-search .btn-search i {
	width: auto !important;
	margin-right: 6px;
}

/* Results Header */
.fhcb-search .results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 0 5px;
}
.fhcb-search .results-count {
	font-size: 16px;
	color: #475569;
}
.fhcb-search .results-count strong {
	color: #16a34a;
	font-size: 18px;
	font-weight: 600;
	margin: 0 4px;
}
.fhcb-search a.btn-clear {
	color: #64748b;
	background: transparent;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 6px 15px;
	font-size: 13.5px;
	text-decoration: none;
}
.fhcb-search a.btn-clear:hover {
	background: #f1f5f9;
	color: #ef4444;
	border-color: #f1f5f9;
	text-decoration: none;
}

/* Table List */
.fhcb-table {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}
.fhcb-table-header {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Row */
.fhcb-row {
	display: flex;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid #f1f5f9;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}
.fhcb-row:last-child {
	border-bottom: none;
}
.fhcb-row:hover {
	background: #f0fdf4;
	text-decoration: none;
	color: inherit;
}

/* Columns */
.fhcb-col-logo {
	width: 80px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fhcb-col-name {
	flex: 1;
	min-width: 0;
	padding: 0 16px;
}
.fhcb-col-status {
	width: 130px;
	flex-shrink: 0;
	text-align: center;
}

/* Row Logo */
.fhcb-row-logo {
	max-width: 60px;
	max-height: 50px;
	object-fit: contain;
}
.fhcb-row-no-logo {
	font-size: 28px;
	color: #cbd5e1;
}
.fhcb-row-no-logo i {
	width: auto !important;
}

/* Row Name */
.fhcb-row-name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.35;
}
.fhcb-row-country {
	display: block;
	font-size: 13px;
	color: #64748b;
	margin-top: 3px;
}
.fhcb-row-country i {
	margin-right: 4px;
	color: #94a3b8;
	width: auto !important;
}

/* Status Badge */
.fhcb-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.fhcb-status.status-active { background: #dcfce7; color: #166534; }
.fhcb-status.status-pending { background: #fef3c7; color: #92400e; }
.fhcb-status.status-unrecognised { background: #fee2e2; color: #991b1b; }

/* Pagination */
.fhcb-pagination {
	text-align: center;
	margin-top: 25px;
}
.fhcb-pagination a,
.fhcb-pagination strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	margin: 0 3px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: #475569;
	background: #fff;
	transition: all 0.15s ease;
}
.fhcb-pagination a:hover {
	background: #f0fdf4;
	border-color: #22c55e;
	color: #166534;
	text-decoration: none;
}
.fhcb-pagination strong {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

/* Empty / Initial State */
.fhcb-empty-state {
	text-align: center;
	padding: 50px 20px;
	color: #999;
}
.fhcb-empty-state i.fa {
	font-size: 64px;
	opacity: 0.2;
	display: block;
	margin-bottom: 20px;
	width: auto !important;
}
.fhcb-empty-state h4 {
	font-size: 17px;
	font-weight: 500;
	color: #666;
	margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.fhcb-search .fhcb-search-bar {
		flex-wrap: wrap;
	}
	.fhcb-search .filter-status {
		width: 100%;
		border-bottom: 1px solid #e2e8f0;
	}
	.fhcb-search .fhcb-search-divider {
		display: none;
	}
	.fhcb-search .fhcb-search-input {
		min-width: 0;
	}
	.fhcb-table-header {
		display: none;
	}
	.fhcb-row {
		flex-wrap: wrap;
		padding: 12px 15px;
	}
	.fhcb-col-logo {
		width: 50px;
	}
	.fhcb-row-logo {
		max-width: 40px;
		max-height: 40px;
	}
	.fhcb-col-name {
		padding: 0 10px;
	}
	.fhcb-col-status {
		width: auto;
	}
}
