/* Command's main search is a standard dialog; trait and map searches stay inline. */
.dashboard-app.command-search-open,
.dashboard-app.command-transmissions-open { overflow: hidden; }
.dashboard-app > header .top > #searchButton {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--command-grey, #727578);
}
.dashboard-app .command-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 10030;
	background: rgba(0, 0, 0, .9);
	overflow: hidden;
}
.dashboard-app .command-search-overlay > .popup-scroll { padding: 10px 20px 20px; }
.dashboard-app .command-search-overlay .popup-top { box-sizing: border-box; height: var(--detail-header-height); }
.dashboard-app .command-search-overlay .command-search-input-area {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}
.dashboard-app .command-search-overlay .search-control { padding: 0 10px; }
.dashboard-app .command-search-overlay .search-input { outline: none; }
.dashboard-app .command-search-overlay .popup-card { margin-bottom: 0; min-height: 80px; }
.dashboard-app .command-search-overlay #searchResults { margin: 0; padding: 20px; }
.dashboard-app .command-search-overlay .search-results-scroll { min-width: 0; }
.dashboard-app .command-search-overlay .search-desc { padding: 0; line-height: 1.4; }

/* Search groups use the same42px content header as Planet detail groups. */
.dashboard-app .command-search-overlay .search-results-group { border: 0; }
.dashboard-app .search-results .card-box-title { color: var(--command-grey, #727578); }
.dashboard-app .command-search-overlay .card-box { border: 0; }
.dashboard-app .command-search-overlay .card-box-header {
	box-sizing: border-box;
	height: 42px;
	padding: 5px 0;
	border: 0;
}
.dashboard-app .command-search-overlay .card-box-header :is(.card-box-title, .card-box-count, .card-box-toggle i) { line-height: 32px; }
.dashboard-app .command-search-overlay .card-box-content { padding: 0; border: 0; }
.dashboard-app .command-search-overlay .search-results-items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-app .command-search-overlay .dashboard-search-planet {
	position: relative;
	display: block;
	border: 1px solid var(--command-border);
	border-radius: 12px;
	overflow: hidden;
}
.dashboard-app .command-search-overlay .dashboard-search-planet .search-results-item-image { aspect-ratio: 3 / 4; }
.dashboard-app .command-search-overlay .dashboard-search-planet .search-results-item-name {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0;
	color: var(--command-grey, #727578);
	font-size: var(--font-sm);
	line-height: 14px;
	font-weight: 400;
	letter-spacing: normal;
}
.dashboard-app .command-search-overlay .dashboard-search-planet :is(.dashboard-search-planet-custom-name, .dashboard-search-planet-code) {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dashboard-app .command-search-overlay .dashboard-search-planet .dashboard-search-planet-custom-name {
	color: #fff;
	font-size: var(--font-md);
	font-weight: 500;
	line-height: 16px;
}
@media (hover: hover) and (pointer: fine) {
	.dashboard-app > header .top > #searchButton:hover { color: #fff; }
	.dashboard-app .command-search-overlay .popup-close:hover { border-color: #fff; color: #fff; }
}
@media (max-width: 800px) {
	.dashboard-app > header .top { display: flex; gap: 10px; }
	.dashboard-app > header .top > #navBtn { flex: 0 0 auto; margin: 0; }
	.dashboard-app .command-search-overlay #searchResults { padding: 20px; }
}

/* The transmissions entry shares the search dialog's frame and Comms identities. */
.dashboard-app > header .command-top-tabs #messageButton {
	position: relative;
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px;
	height: 60px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	background: transparent;
	color: var(--command-grey, #727578);
	cursor: pointer;
}
.dashboard-app > header .command-top-tabs #messageButton .fa-message { display: flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; }
.dashboard-app > header .command-top-tabs #messageButton .fa-message::before { display: none; }
.dashboard-app > header .command-top-tabs #messageButton .fa-message svg { display: block; width: 20px; height: 20px; }
.dashboard-app > header .command-top-tabs #messageButton .command-message-dot {
	position: absolute;
	top: 18px;
	right: 5px;
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border: 2px solid #000;
	border-radius: 50%;
	background: #5acc77;
	pointer-events: none;
}
.dashboard-app > header .command-top-tabs #messageButton .command-message-dot.hidden { display: none; }
.dashboard-app .command-transmissions-overlay .popup-top { display: flex; align-items: center; }
.dashboard-app .command-transmissions-overlay .popup-title { padding-left: 10px; }
.dashboard-app .command-transmissions-overlay .popup-card { min-height: 80px; }
.dashboard-app .command-transmissions-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dashboard-app .command-transmissions-list:is(.is-empty, .is-loading) { display: flex; min-height: min(638px, calc(100vw - 22px)); align-items: center; justify-content: center; background: #000; }
.dashboard-app .command-transmissions-empty-illustrated { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 100%; padding: 20px; text-align: center; }
.dashboard-app .command-transmissions-ground-station { display: block; width: min(180px, 50vw); height: auto; aspect-ratio: 1; color: var(--command-grey, #727578); }
.dashboard-app .command-transmission-row {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 10px;
	border: 0;
	border-bottom: 1px solid #262626;
	background: transparent;
	color: #ededed;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.dashboard-app .command-transmission-row:last-child { border-bottom: 0; }
.dashboard-app .command-transmission-avatars { position: relative; display: block; flex: 0 0 60px; width: 60px; height: 40px; }
.dashboard-app .command-transmission-avatar { position: absolute; top: 0; display: block; box-sizing: border-box; width: 40px; height: 40px; overflow: hidden; border: 1px solid #262626; border-radius: 50%; background: #000; }
.dashboard-app .command-transmission-avatar.sender { left: 0; z-index: 2; }
.dashboard-app .command-transmission-avatar.receiver { left: 20px; z-index: 1; }
.dashboard-app .command-transmission-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dashboard-app .command-transmission-main { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; height: 40px; margin-left: 10px; }
.dashboard-app .command-transmission-identities { display: flex; align-items: center; gap: 5px; min-width: 0; height: 15px; color: var(--command-grey, #727578); font-size: 11px; line-height: 15px; white-space: nowrap; }
.dashboard-app .command-transmission-planet-name { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dashboard-app .command-transmission-identities > i { flex: 0 0 14px; width: 14px; color: var(--command-grey, #727578); font-size: 12px; text-align: center; }
.dashboard-app .command-transmission-preview { display: block; min-width: 0; overflow: hidden; color: #ededed; font-size: var(--font-lg); line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-app .command-transmission-chevron { flex: 0 0 auto; margin-left: 20px; color: var(--command-grey, #727578); font-size: 14px; }
.dashboard-app .command-transmissions-empty { padding: 20px; color: var(--command-grey, #727578); font-size: var(--font-md); line-height: 1.4; }
.dashboard-app .command-transmissions-more { display: block; box-sizing: border-box; width: calc(100% - 20px); min-height: 40px; margin: 10px 10px 20px; padding: 5px 10px; border: 1px solid #303030; border-radius: 20px; background: #161616; color: #ededed; font: inherit; cursor: pointer; }
.dashboard-app .command-transmissions-more:disabled { color: var(--command-grey, #727578); cursor: default; }
@media (hover: hover) and (pointer: fine) {
	.dashboard-app > header .command-top-tabs #messageButton:hover { color: #fff; }
	.dashboard-app .command-transmission-row:hover { background: #161616; }
	.dashboard-app .command-transmissions-more:not(:disabled):hover { background: #2b2d38; }
}
