/* /www/wwwroot/guru.markets/frontend/css/controls.css */
/**
* A-FUCKING-DOCS: Light-Mode Surface Parity. 
* We've hard-coded both the container and the interactive bar to #999999 to achieve a seamless blend with the site's primary background vector. 
* Visibility is maintained strictly via #FFFFFF border enforcement. 
* This eliminates the unauthorized black block in the light theme while preserving the functional chassis of the scale-bar.
*/
.global-controls {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 6px 0;
	border-bottom: 1px solid #FFFFFF !important;
}
.global-controls.pinned {
	position: sticky;
	top: 0;
	background-color: #999999;
	z-index: 1000;
	transition: background-color 0.3s ease;
}
#base-ticker-selector {
	flex-shrink: 0;
	flex-grow: 0;
	width: 100px;
}
#base-ticker-selector .input-icon-wrapper {
	background-color: white;
	border: 1px solid #FFFFFF !important;
	height: 45px;
	box-sizing: border-box;
}
#base-ticker-selector .search-input {
	color: black;
	font-weight: normal;
	font-size: 16px;
	font-family: sans-serif;
	text-align: left;
	padding: 0 5px;
}
#base-ticker-selector .search-input[readonly] {
	color: #888;
	opacity: 1;
	cursor: pointer;
	text-align: center;
	font-weight: normal;
	font-size: 16px;
	font-family: sans-serif;
}
#base-ticker-selector .search-results {
	width: 300px;
	left: 0;
	right: auto;
}
#scale-bar-container {
	position: relative;
	flex-grow: 1;
	background-color: #999999;
	border: 1px solid #FFFFFF !important;
	height: 45px;
	min-width: 0;
	margin-right: 15px;
	margin-left: 10px;
}
#scale-bar {
	position: absolute;
	top: 0;
	height: 100%;
	/* Silicon Valley Lingo: Forcing base-gray vector to match the site surface in light mode. */
	background-color: #999999;
	opacity: 1;
	border-style: solid;
	border-color: #FFFFFF !important;
	border-width: 5px 1px;
	cursor: grab;
	min-width: 130px;
	box-sizing: border-box;
	transition: background-color 0.3s ease;
}
.scale-date-input {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #FFFFFF !important;
	opacity: 1 !important;
	font-weight: bold;
	font-size: 17px;
	font-family: "Consolas", "Menlo", "Monaco", "Courier New", monospace;
	background: transparent;
	border: none;
	width: 85px;
	text-align: center;
}
#scale-start-date {
	left: 5px;
}
#scale-end-date {
	right: 5px;
}
#scale-bar.dates-wrapped #scale-start-date {
	top: 25%;
	left: 50%;
	transform: translate(-50%, -50%);
}
#scale-bar.dates-wrapped #scale-end-date {
	top: 75%;
	left: 50%;
	transform: translate(-50%, -50%);
}
#scale-bar-left-handle, #scale-bar-right-handle {
	position: absolute;
	top: 0;
	width: 5px;
	height: 100%;
	background-color: #FFFFFF !important;
	cursor: ew-resize;
	z-index: 10;
}
#scale-bar-left-handle {
	left: -5px;
}
#scale-bar-right-handle {
	right: -5px;
}
#clear-charts-btn, #pin-scale-bar, #undo-btn, #redo-btn, #templates-btn {
	font-size: 40px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s ease-in-out;
	user-select: none;
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: inherit;
}
#undo-btn {
	margin-left: 5px;
}
#redo-btn {
	margin-left: 0;
	margin-right: 5px;
}
#clear-charts-btn {
	margin-left: 0;
	margin-right: 5px;
}
#clear-charts-btn:not(:disabled):hover, #pin-scale-bar:not(:disabled):hover, #undo-btn:not(:disabled):hover, #redo-btn:not(:disabled):hover, #templates-btn:not(:disabled):hover {
	opacity: 1;
}
#clear-charts-btn:disabled, #pin-scale-bar:disabled, #undo-btn:disabled, #redo-btn:disabled, #templates-btn:disabled {
	opacity: 0.2;
	cursor: not-allowed;
	color: inherit !important;
	background-color: transparent !important;
}
#pin-scale-bar.active {
	opacity: 1;
}