/* RidetLookup — styles de la boîte d'auto-remplissage. GPL v3+. */

.ridetlookup-box {
	border: 1px solid #c8d4e0;
	border-left: 3px solid #1a73a7;
	background: #f4f8fc;
	border-radius: 5px;
	padding: 10px 12px;
	margin: 8px 0 14px 0;
}

.ridetlookup-title {
	font-weight: bold;
	color: #1a4d70;
	margin-bottom: 8px;
}

.ridetlookup-mode {
	display: flex;
	gap: 16px;
	margin-bottom: 8px;
	font-size: 0.9em;
}

.ridetlookup-mode label {
	cursor: pointer;
	font-weight: normal;
}

.ridetlookup-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.ridetlookup-row input[type="text"] {
	flex: 1 1 280px;
	min-width: 220px;
	padding: 5px 8px;
}

.ridetlookup-results {
	margin-top: 8px;
	max-height: 280px;
	overflow-y: auto;
}

.ridetlookup-item {
	padding: 6px 10px;
	border: 1px solid #e0e6ec;
	border-radius: 4px;
	margin-bottom: 4px;
	background: #fff;
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.ridetlookup-item:hover {
	background: #eaf3fb;
	border-color: #1a73a7;
}

.ridetlookup-meta {
	color: #667;
	font-size: 0.85em;
	margin-top: 2px;
}

.ridetlookup-status {
	margin-top: 8px;
	font-size: 0.9em;
	min-height: 1em;
}

.ridetlookup-status.ok { color: #1a7a3a; }
.ridetlookup-status.warn { color: #b35900; }

.ridetlookup-found {
	margin: 6px 0;
	padding: 6px 10px;
	background: #eaf3fb;
	border: 1px solid #c8d4e0;
	border-radius: 4px;
}

.ridetlookup-found.ridetlookup-mismatch {
	background: #fde7e7;
	border-color: #d98c8c;
	color: #a12626;
}

.ridetlookup-diritem {
	display: block;
	padding: 4px 6px;
	border-bottom: 1px solid #eef2f6;
	cursor: pointer;
}

.ridetlookup-diritem:hover { background: #f4f8fc; }
