/*
 * css/stack-panel.css
 *
 * Stack-panel styles shared by the harness Stack Inspector and the in-game
 * stack HUD. Loaded by BOTH harness.html and index.html so the renderer in
 * src/games/squad-leader/views/stack-panel.ts looks identical in either host.
 * (Moved out of harness.css, which the game does not load.)
 */

.h-hint { margin-top: 8px; font-size: 11px; color: #999; font-style: italic; }

.h-stack-header {
	margin: 8px 0 6px;
	padding: 6px 8px;
	background: #1d1f21;
	border: 1px solid #333;
	border-radius: 3px;
}
.h-stack-header-top {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}
.h-stack-hex {
	font: bold 14px monospace;
	color: #fff;
}
.h-stack-terrain {
	font-size: 11px;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.h-stack-header-counts {
	display: flex;
	gap: 10px;
	font-size: 10px;
	color: #aaa;
}
.h-stack-count.h-stack-overcap {
	color: #f88;
	font-weight: bold;
}

.h-stack-rows {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
}
.h-stack-row {
	background: #2a2d30;
	border: 1px solid #333;
	border-radius: 3px;
	padding: 5px 7px;
}
.h-stack-row-selected {
	border-color: #6aa9ff;
	background: #2f4d6e;
}
.h-stack-row-clickable {
	cursor: pointer;
}
.h-stack-row-clickable:hover {
	border-color: #555;
	background: #303437;
}
/* ACTIVE row — the single unit foregrounded for ops. Only the active row
   is highlighted; a merely-checked row shows ☑ but no highlight. */
.h-stack-row-active {
	border-color: #6aa9ff;
	background: #2f4d6e;
}
.h-stack-row-active:hover {
	border-color: #8bbcff;
	background: #355880;
}
.h-stack-check {
	font-size: 14px;
	line-height: 1;
	color: #888;
	cursor: pointer;
	user-select: none;
}
.h-stack-check:hover { color: #bbb; }
.h-stack-check-on { color: #6aa9ff; }
.h-stack-active-badge {
	font-size: 9px;
	font-weight: bold;
	letter-spacing: 0.5px;
	color: #6aa9ff;
}
.h-stack-row-head {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}
.h-stack-unit-name {
	font-weight: bold;
	color: #fff;
}
/* Namespaced side classes — `.side0/.side1` collide with the counter-sprite
   rules in sprack-minisl.css (35x35 absolute boxes), which clipped the name. */
.h-stack-unit-name.h-side0 { color: #cdd; }
.h-stack-unit-name.h-side1 { color: #fcc; }
.h-stack-unit-stats {
	font: 11px monospace;
	color: #ddd;
	margin-left: auto;
}
.h-stack-row-meta {
	font-size: 10px;
	color: #999;
	margin-top: 3px;
}
.h-stack-pill {
	display: inline-block;
	font-size: 9px;
	font-weight: bold;
	letter-spacing: 0.5px;
	background: #5a2a2a;
	color: #fdd;
	padding: 1px 5px;
	border-radius: 2px;
}

.h-stack-support {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font: 11px monospace;
	color: #ccc;
	padding: 2px 0 2px 8px;
}
.h-stack-support-glyph { color: #666; }
.h-stack-support-name { color: #ddd; }
.h-stack-support-stats { color: #aaa; }
.h-stack-support-pp { color: #aaa; margin-left: auto; }

.h-stack-loose {
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px dashed #444;
}
.h-stack-loose-heading {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-bottom: 4px;
}
.h-stack-loose-row {
	display: flex;
	gap: 6px;
	font: 11px monospace;
	padding: 2px 0;
}
