
/* Layout for fields */
.excel-search-label {
	font-weight: 600;
	margin-bottom: .3em;
	color: #1a2a36;
	font-size: 1em;
}

.excel-search-year, .excel-search-charter {
	font-size: 1.08em;
	padding: .7em 1.1em;
	border: 1.5px solid var(--wp--preset--color--primary, #0073aa);
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-family: inherit;
	box-shadow: 0 2px 8px rgba(0, 115, 170, .07);
	transition: border-color .2s, box-shadow .2s;
	margin: 0;
	display: block;
	height: 44px;
	min-height: 44px;
	line-height: 1.2;
}

.excel-search-year {
	width: auto;
	min-width: 80px;
	max-width: 100px;
	flex: none;
}

.excel-search-charter {
	flex: 1;
	width: 100%;
	min-width: 180px;
}

/* Remove .excel-search-input, handled above */

/* Remove custom arrow for now for better alignment */
@media (max-width: 600px) {
	.excel-search-fields {
		flex-direction: column;
		gap: .7em;
	}
	
	.excel-search-year {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}
}

/* Layout for fields */
.excel-search-fields {
	display: block;
	max-width: 600px;
	margin-bottom: 1.7em;
}

.excel-search-field-group {
	display: inline-block;
	min-width: 0;
}

.excel-search-label {
	font-weight: 600;
	margin-top: 10px;
	color: #1a2a36;
}

.excel-search-year {
	max-width: 120px;
	min-width: 200px;
	width: 100%;
	box-sizing: border-box;
}

.excel-search-charter {
	width: 100%;
	min-width: 180px;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.excel-search-fields {
		flex-direction: column;
		gap: .7em;
	}
	
	.excel-search-year {
		max-width: 100%;
	}
}

.excel-search-widget {
	max-width: 600px;
	position: relative;
	margin: 2em auto;
	font-family: var(--wp--preset--font-family--system), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.excel-search-input {
	padding: 0px 10px;
	border: 1.5px solid var(--wp--preset--color--primary, #0073aa);
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 1.15em;
	font-family: inherit;
	box-shadow: 0 2px 8px rgba(0, 115, 170, .07);
	transition: border-color .2s, box-shadow .2s;
	margin: 0;
	display: block;
}

.excel-search-widget input[type="text"]:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary, #0073aa);
	box-shadow: 0 0 0 2px rgba(0, 115, 170, .2);
}

.excel-search-widget .suggestions {
	position: fixed;
	background: #fff;
	border: 1.5px solid var(--wp--preset--color--primary, #0073aa);
	border-radius: 6px;
	max-height: 300px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0, 115, 170, .1);
	z-index: 1000;
	padding: 0;
	list-style: none;
}

.excel-search-widget .suggestions li {
	display: flex !important;
	align-items: flex-start !important;
	gap: .7em !important;
	padding: .7em 1.2em .7em 1.2em !important;
	border-bottom: 1px solid #f0f4f8 !important;
	cursor: pointer !important;
	background: none !important;
	font-size: 1.08em !important;
	color: #1a2a36 !important;
	transition: background .18s, color .18s !important;
	box-sizing: border-box !important;
}

.excel-search-widget .suggestions li::before {
	content: "" !important;
	display: inline-block !important;
	width: 10px !important;
	height: 10px !important;
	background: #0073aa !important;
	border-radius: 50% !important;
	margin-top: .75em !important;
	margin-left: .3em !important;
	vertical-align: middle !important;
	box-shadow: 0 1px 3px rgba(0, 115, 170, .1) !important;
}

.excel-search-widget .suggestions li:last-child {
	border-bottom: none;
}

.excel-search-widget .suggestions li:hover, .excel-search-widget .suggestions li:focus {
	background: #e6f4fa;
	color: #0073aa;
}

.excel-search-widget .titles-output {
	margin-top: 2em;
}

.excel-search-widget .title-box {
	background: #fafdff;
	border: 1.5px solid #b3d8ee;
	border-radius: 8px;
	padding: 1.5em 1.3em 1.3em 1.3em;
	margin: 1.2em 0;
	box-shadow: 0 2px 12px rgba(0, 115, 170, .07);
	transition: box-shadow .2s;
}

.excel-search-widget .title-box strong {
	display: block;
	margin-bottom: .6em;
	color: #005177;
	font-size: 1.18em;
	font-weight: 600;
	letter-spacing: .01em;
}

.excel-search-widget .title-box small {
	color: #2d3a4a;
	line-height: 1.7;
	font-size: 1em;
	display: block;
	margin-top: .2em;
}

@media (max-width: 600px) {
	.excel-search-widget {
		max-width: 100%;
		padding: 0 1em;
	}
	
	.button-group {
		flex-direction: column;
		align-items: stretch;
		gap: .5em;
	}
}

.excel-search-widget .loading, .excel-search-widget .error {
	margin-top: 1em;
	padding: .75em;
	border-radius: 4px;
	text-align: center;
}

.excel-search-widget .loading {
	background: var(--wp--preset--color--light, #f5f5f5);
	color: var(--wp--preset--color--text, #666);
}

.excel-search-widget .error {
	background: var(--wp--preset--color--error-light, #fce4e4);
	color: var(--wp--preset--color--error, #dc3232);
}
