/* ------------------------------------------------------------------ */
/*  Navbar Search Container                                            */
/* ------------------------------------------------------------------ */

.qs-container {
	float: left;
	position: relative;
	padding: 7px 10px 0 10px;
	z-index: 1050;
}

.qs-input-wrapper {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	height: 30px;
}

.qs-search-btn {
	border: none;
	background: transparent;
	padding: 4px 10px;
	color: #888;
	cursor: pointer;
	font-size: 13px;
	border-right: 1px solid #e0e0e0;
	height: 100%;
}

.qs-search-btn:hover {
	color: #555;
	background: #f5f5f5;
}

.qs-input {
	border: none;
	outline: none;
	padding: 4px 4px 4px 6px;
	font-size: 13px;
	width: 220px;
	background: transparent;
	color: #333;
}

.qs-input::placeholder {
	color: #aaa;
}

.qs-filter-btn {
	border: none;
	background: transparent;
	padding: 4px 8px;
	color: #888;
	cursor: pointer;
	font-size: 12px;
	border-left: 1px solid #e0e0e0;
	height: 100%;
}

.qs-filter-btn:hover {
	color: #555;
	background: #f5f5f5;
}

/* ------------------------------------------------------------------ */
/*  Dropdown                                                           */
/* ------------------------------------------------------------------ */

.qs-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	min-width: 420px;
	max-height: 460px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1060;
}

.qs-item {
	display: block;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	text-decoration: none;
	color: #333;
	cursor: pointer;
	transition: background 0.1s;
}

.qs-item:hover,
.qs-item-active {
	background: #f0f4f8;
	text-decoration: none;
	color: #333;
}

.qs-item:last-of-type {
	border-bottom: none;
}

.qs-item-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 3px;
	font-size: 12px;
}

.qs-item-id {
	font-weight: 600;
	color: #555;
}

.qs-item-status {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 11px;
	color: #fff;
	font-weight: 500;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.qs-item-project {
	margin-left: auto;
	color: #888;
	font-size: 11px;
}

.qs-item-summary {
	font-size: 13px;
	font-weight: 600;
	color: #222;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qs-item-snippet {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
	max-height: 2.8em;
	overflow: hidden;
}

.qs-item-snippet strong {
	color: #d9534f;
	font-weight: 700;
}

.qs-no-results {
	padding: 12px;
	text-align: center;
	color: #888;
	font-size: 13px;
}

.qs-show-all {
	display: block;
	padding: 8px 10px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #337ab7;
	text-decoration: none;
	border-top: 1px solid #eee;
	background: #fafafa;
}

.qs-show-all:hover {
	background: #f0f4f8;
	text-decoration: none;
	color: #23527c;
}

/* ------------------------------------------------------------------ */
/*  Match Source Badge                                                  */
/* ------------------------------------------------------------------ */

.qs-match-badge {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.qs-match-id {
	background: #d9edf7;
	color: #31708f;
}

.qs-match-summary {
	background: #dff0d8;
	color: #3c763d;
}

.qs-match-description {
	background: #fcf8e3;
	color: #8a6d3b;
}

.qs-match-bugnote {
	background: #f2dede;
	color: #a94442;
}

/* ------------------------------------------------------------------ */
/*  Status Filter Panel                                                */
/* ------------------------------------------------------------------ */

.qs-filter-panel {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	max-height: 300px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1070;
	padding: 6px 0;
}

.qs-filter-list {
	display: flex;
	flex-direction: column;
}

.qs-filter-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
	margin: 0;
	font-weight: normal;
}

.qs-filter-item:hover {
	background: #f5f5f5;
}

.qs-status-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

/* ------------------------------------------------------------------ */
/*  Full Results Page                                                  */
/* ------------------------------------------------------------------ */

.qs-results-header {
	padding: 12px 15px;
	border-bottom: 1px solid #ddd;
}

.qs-results-search-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	position: relative;
}

.qs-results-input {
	flex: 1;
	padding: 6px 10px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	outline: none;
}

.qs-results-input:focus {
	border-color: #66afe9;
	box-shadow: 0 0 4px rgba(102, 175, 233, 0.4);
}

.qs-results-filter-panel {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	max-height: 300px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1070;
	padding: 6px 0;
}

.qs-results-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: #777;
}

.qs-results-sort {
	display: flex;
	align-items: center;
	gap: 6px;
}

.qs-results-sort select {
	font-size: 12px;
	padding: 2px 6px;
}

.qs-result-row {
	cursor: pointer;
}

.qs-result-row:hover {
	background-color: #f0f4f8 !important;
}

.qs-result-summary {
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 2px;
}

.qs-result-snippet {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

.qs-result-snippet strong {
	color: #d9534f;
	font-weight: 700;
}

.qs-col-id {
	width: 60px;
	text-align: center;
}

.qs-col-status {
	width: 90px;
}

.qs-col-match {
	width: 90px;
}

.qs-col-project {
	width: 130px;
}

.qs-col-handler {
	width: 130px;
}

.qs-col-created {
	width: 130px;
}

.qs-col-updated {
	width: 130px;
}

.qs-status-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	color: #fff;
	font-weight: 500;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.qs-results-pagination {
	padding: 10px 15px;
	text-align: center;
}

.qs-results-pagination .pagination {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 991px) {
	.qs-container {
		margin: 7px 8px 0 8px;
	}

	.qs-input {
		width: 160px;
	}

	.qs-dropdown {
		min-width: 320px;
	}
}
