/* /frontend/css/controls.css - 20260807 - 17-10 */
.global-controls {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 6px 0;
	border-bottom: 1px solid #FFFFFF !important;
	position: relative;
	z-index: 100;
	overflow: visible !important;
	flex-wrap: nowrap !important;
	width: 100%;
}
.global-controls.pinned {
	position: sticky;
	top: 0;
	background-color: #999999;
	z-index: 10000;
	transition: background-color 0.3s ease;
}
#base-ticker-selector {
	flex-shrink: 0;
	flex-grow: 0;
	width: 100px;
	position: relative;
	z-index: 10005;
	overflow: visible !important;
}
#base-ticker-selector.dropdown-active {
	z-index: 100000 !important;
}
#base-ticker-selector .input-icon-wrapper {
	background-color: #ffffff;
	border: 1px solid #FFFFFF !important;
	height: 45px;
	box-sizing: border-box;
}
#base-ticker-selector .search-input {
	color: #888888 !important;
	font-weight: normal;
	font-size: 16px;
	font-family: sans-serif;
	text-align: left;
	padding: 0 8px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	background: transparent;
	border: none;
	outline: none;
}
#base-ticker-selector .search-input::placeholder {
	color: #888888;
	opacity: 1;
}
#base-ticker-selector .search-results,
.ticker-search-results {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	width: 360px !important;
	max-height: 310px !important;
	overflow-y: auto !important;
	z-index: 999999 !important;
	background-color: #ffffff !important;
	border: 1px solid #cccccc !important;
	border-radius: 4px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
	display: none;
}
#base-ticker-selector.dropdown-active .search-results,
.ticker-search-results.show {
	display: block !important;
}
.ticker-search-results .result-item {
	display: flex !important;
	align-items: center !important;
	padding: 8px 12px !important;
	cursor: pointer !important;
	border-bottom: 1px solid #f0f0f0 !important;
	background-color: #ffffff !important;
	color: #202123 !important;
	text-align: left !important;
	user-select: none;
}
.ticker-search-results .result-item:hover {
	background-color: #e8f0fe !important;
}
.ticker-search-results .info-btn-inline {
	background: none !important;
	border: none !important;
	font-size: 14px !important;
	margin-right: 8px !important;
	cursor: pointer !important;
	padding: 0 !important;
	line-height: 1 !important;
}
.ticker-search-results .result-item-name-container {
	flex-grow: 1 !important;
	min-width: 0 !important;
}
.ticker-search-results .result-item-name-primary {
	font-weight: bold !important;
	font-size: 14px !important;
	color: #202123 !important;
	line-height: 1.2 !important;
}
.ticker-search-results .result-item-name-secondary {
	font-size: 12px !important;
	color: #666666 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}
#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 {
	display: none;
	position: absolute;
	top: 0;
	height: 100%;
	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;
}
.ticker-select-container,
.indicator-select-container,
.select-container {
	max-width: 100% !important;
	box-sizing: border-box !important;
}