@charset "UTF-8";

* {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

:root {
	--bg: #efefef;
	--bg-sec: #dae3e5;
	--bg-third: #c9d2d4;
	--bg-hover: #b4b4ff;
	--bg-hover-btn: #6666aa;
	--bg-buy: #BFD7EE;
	--bg-sell: #D7B7E7;
	--bg-notri: #ddd;
	--text-main: #000;
	--text-neg: #eee;
	--text-sec: #444;
	--text-third: #16263b;
	--text-popup: #000;
	--text-gray: #888888;
	--text-green: #227722;
	--text-red: #DD0000DD;
	--text-orange: #16263b;
	--text-bg: #bbd1ea;
	--tbl-bg: #eee;
	--tbl-bg-odd: #eee;
	--tbl-bg-even: #dfdfdf;
	--tbl-bg-hover: #b4b4ff;
	--tbl-border: #DDDDDD;
	--tbl-header: #B4D2F5;
	--tbl-header-green: rgba(100, 235, 100, 0.7);
	--tbl-header-group: #C8C8E6;
	--btn-bg: #B4D2F5;
	--btn-bg-sec: #efefef;
	--btn-text: #000;
	--btn-border: #999999;
	--btn-hover: #b4b4ff;
	--pivot-sup: rgb(204, 230, 255);
	--pivot-res: rgb(230, 204, 255);
	--shadow-in: rgba(0, 0, 0, 20);
	--shadow-out: rgba(0, 0, 0, 19);
	--tooltip: #cccccccc;
	--tooltip-title: #eceff1aa;
	--chart-border: #FFF;
}

.light {
	--bg: #efefef;
	--bg-sec: #dae3e5;
	--bg-third: #c9d2d4;
	--bg-hover: #b4b4ff;
	--bg-hover-btn: #6666aa;
	--bg-buy: #BFD7EE;
	--bg-sell: #D7B7E7;
	--bg-notri: #ddd;
	--text-main: #000;
	--text-neg: #eee;
	--text-sec: #444;
	--text-third: #16263b;
	--text-popup: #000;
	--text-gray: #888888;
	--text-green: #227722;
	--text-red: #DD0000DD;
	--text-orange: #16263b;
	--text-bg: #bbd1ea;
	--tbl-bg: #eee;
	--tbl-bg-odd: #eee;
	--tbl-bg-even: #dfdfdf;
	--tbl-bg-hover: #b4b4ff;
	--tbl-border: #DDDDDD;
	--tbl-header: #B4D2F5;
	--tbl-header-green: rgba(68, 188, 68, 0.6);
	--tbl-header-group: #B4D2F5;
	--btn-bg: #B4D2F5;
	--btn-bg-sec: #efefef;
	--btn-text: #000;
	--btn-border: #999999;
	--tbl-border-watch: #128512;
	--tbl-bg-watch: #128512;
	--btn-hover: #b4b4ff;
	--pivot-sup: rgb(204, 230, 255);
	--pivot-res: rgb(230, 204, 255);
	--shadow-in: rgba(0, 0, 0, 20);
	--shadow-out: rgba(0, 0, 0, 19);
	--tooltip: #cccccccc;
	--tooltip-title: #eceff1aa;
	--chart-border: #000;
}

.dark {
	--bg: #002029; /*021825*/
	--bg-sec: #04314E;
	--bg-third: #06536f;
	--bg-hover: #142b38;
	--bg-hover-btn: #777799;
	--bg-buy: #3B627A;
	--bg-sell: #7F1260;
	--bg-notri: #555;
	--text-main: #b5aaaa;
	--text-neg: #222;
	--text-sec: #B0B0B0;
	--text-third: #16263b;
	--text-popup: #b4b4bf;
	--text-gray: #444;
	--text-green: #128512;
	--text-red: #CC2A2A;
	--tbl-bg: #102530;
	--tbl-bg-even: #00232c;
	--tbl-bg-odd: #002029;
	--tbl-bg-hover: #062F47;
	--tbl-border: #153035;
	--tbl-border-watch: #bbd1ea;
	--tbl-bg-watch: #bbd1ea;
	--tbl-header: #114141;
	--tbl-header-green: #114141;
	--tbl-header-group: #114141;
	--text-orange: #16263b;
	--text-bg: #bbd1ea;
	--btn-bg: #114141;
	--btn-bg-sec: #062F47;
	--btn-text: #D0D0D0;
	--btn-border: #444444;
	--btn-hover: #b4b4ff;
	--pivot-sup: rgb(64, 80, 128);
	--pivot-res: #411E48;
	--shadow-in: rgba(255, 255, 255, 0.05);
	--shadow-out: rgba(255, 255, 255, 0.04);
	--tooltip: #1e1e1ee6;
	--tooltip-title: #000000b3;
	--chart-border: #FFF;
}

.farsiDigits {
	--num: "ss02";
	--numc: "ss03"
}

.latinDigits {
	--num: "ss00";
	--numc: "ss00"
}

@font-face {
	font-family: iransansxv;
	src: url('../../../fonts/IRANSansXV.woff') format('woff-variations'),
		url('../../../fonts/IRANSansXV.woff') format('woff');
	font-weight: 100 1000;
	font-display: fallback;
}

@font-face {
	font-family: iransansx;
	src: url('../../../fonts/IRANSansX-Regular.woff') format('woff');
}

@font-face {
	font-family: iransansx;
	src: url('../../../fonts/IRANSansX-Bold.woff') format('woff');
	font-weight: 700;
}

body {
	font-family: iransansx;
	direction: rtl;
	margin: 0;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

html, body {
	margin: 0;
	height: 100%;
}

body::placeholder {
	font-family: iransansx;
}

table {
	border: none;
	direction: ltr;
}

td {
	width: 0;
}

#searchResult {
	width: 60%;
	margin-right: 20%;
	margin-left: 20%;
	text-align: center;
	background-color: white;
}

#searching {
	height: 50px;
	width: 60%;
	margin-right: 20%;
	margin-left: 20%;
	background-color: white;
	text-align: center;
	margin-top: 10px;
}

.drawing {
	height: 30px;
	width: 30px;
	cursor: pointer;
}

.drawing:hover path, .drawing:hover line {
	stroke: #d32f2f;
}

.tab {
	overflow: hidden;
	float: right;
	cursor: pointer;
	padding: 10px;
	transition: 0.3s;
	font-size: 14px;
}

#settingsclose:hover {
	cursor: pointer;
	color: red;
}

.bt {
	padding: 5px;
	color: #bbb;
}

.bt:hover {
	background-color: gray;
	cursor: pointer;
}

.royal {
	color: royalBlue;
}

.red {
	color: red;
}

.selectors-parent {
	cursor: pointer;
	padding: 0 5px;
	border-right: 1px solid white;
	position: relative;
	display: inline;
	width: auto;
	z-index: 100;
}

.switcher {
	width: 100%;
	text-align: center;
}

a {
	text-decoration: none;
	color: var(--text-main);
}

a.symbol {
	margin: 5px;
	padding: 5px;
	font-weight: 650;
	font-variation-settings: "wght" 650;
}

.active {
	background-color: rgba(120, 240, 120, 0.8);
}

.selectors {
	position: fixed;
	top: 36px;
	left: 120px;
	margin-top: 2px;
	display: none;
	min-width: 180px;
	background: #1e1e1e;
	border: 1px solid #333;
	border-radius: 6px;
	z-index: 900000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media screen and (max-height:600px) {
	#indicators-selector {
		max-height: 400px;
		overflow-y: auto;
	}
	#mini-settings {
		max-height: 300px;
		overflow-y: auto;
	}
}

.selectorbtn {
	position: fixed;
	bottom: 50px;
	display: none;
	min-width: 180px;
	background: #1e1e1e;
	border: 1px solid #333;
	border-radius: 6px;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#analysis-selector {
	left: 50px;
}

#replay-selector {
	padding: 20px;
	left: 40%;
}

.selectors>div {
	display: flex;
	align-items: center;
	padding: 8px 10px;
	cursor: pointer;
	color: white;
}

.selectors>div:hover {
	background: #2a2a2a;
}

.selectors img.left {
	width: 16px;
	height: 16px;
	margin-right: 8px;
}

#sidebar {
	z-index: 1000;
	left: 0;
	top: 41px;
	display: grid;
	grid-template-columns: repeat(1);
	position: absolute;
	background-color: #021825;
	width: 32px;
	padding: 2px;
	border-right: 2px solid white;
	height: calc(100% - 36px);
	overflow: auto;
}

#mainchart {
	height: calc(100% - 40px);
	top: 40px;
	left: 0;
	width: calc(100% - 35px);
	position: absolute;
	overflow: hidden;
}

@media screen and (max-width:480px) {
	#sidebar {
		border-top: 2px solid black;
		direction: ltr;
 		top:auto;
 		bottom:0;
		left: 0;
		width: 100%;
		grid-template-columns: repeat(10, 1fr);
		height: 100px;
		overflow: hidden;
	}
	#mainchart {
		width: 100%;
		left: 0;
		height: calc(100% - 145px);
	}
	#replay-selector {
	bottom:140px;
	left: 5%;
}
#analysis-selector {
	left: 0;
	width:100%;
	bottom:140px;
	zoom:0.7;
}
}

#message {
	position: absolute;
	z-index: 1000;
	right: 40px;
	bottom: 40px;
	background-color: darkGreen;
	color: white;
	text-align: center;
	margin: 10px;
	padding: 10px;
	display: none;
	min-height: 30px;
	min-width: 200px;
}

.navbar {
	z-index: 10001;
	display: flex;
	align-items: center;
	top: 0;
	position: absolute;
	height: 40px;
	width: 100%;
	border-bottom: 2px solid #021825;
	justify-content: space-between;
}

 

.left {
	display: flex;
	flex-wrap: nowrap;
	white-space: nowrap;
	overflow-x: auto; 
	overflow-y : hidden;
	gap: 10px;
	overflow-y: hidden;
		direction: ltr;
}

.top-left-items {
	float: left;
	margin-top: -5px;
	direction: ltr;
	flex-direction: row-reverse;
}

.right {
	height: 34px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	display: grid;
	flex-shrink: 0;
}

#mainchart>div.tv-lightweight-charts>table>tr:nth-child(1)>td:nth-child(3)>div,
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(2)>td:nth-child(2)>div
	{
	z-index: 15;
}

::-webkit-scrollbar {
	display: none;
}

@media screen and (max-width:720px) {
	#style-panel {
		z-index: 90001;
	}
}

.tab:hover, .tab.active:hover {
	background-color: #66f;
}

select {
	align-items: center;
	text-align: center;
	text-align-last: left;
	width: 75px;
	padding: 1px 5px 1px 1px;
	margin: 1px;
	border: none;
	outline: none;
	max-height: 25px;
	font-family: iransansx;
}

.tab.active {
	background-color: darkGreen;
	color: white;
}

.btxx {
	padding: 3px;
	cursor: pointer;
	font-size: 13px;
}

.grayx {
	color: #8885;
}

.fullModal {
	display: none;
	position: fixed;
	left: 0%;
	right: 0%;
	top: 0%;
	width: calc(100vw - 20px);
	height: 100vh;
	overflow-y: auto;
	padding: 10px;
	background-color: var(--bg);
	z-index: 10001;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1001;
	left: 0%;
	top: 0%;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
	background-color: var(--bg);
	margin: 10% auto;
	padding: 10px;
	border: 1px solid var(--tbl-border);
	width: 96%;
}

.btxx:hover {
	background-color: orange;
	color: var(--text-neg);
}

.legend {
	font-size: 11px;
	position: absolute;
	z-index: 1000;
	color: #AAA;
	z-index: 1000;
}

.legendx {
	font-size: 11px;
	position: absolute;
	z-index: 1000;
	color: #AAA;
	text-align: left;
	left: 60px;
	border: 1px solid gray;
	height: 20px;
}

.legendx>span {
	padding-right: 10px;
}

.tooltip {
	position: relative;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 360px;
	background-color: #555;
	color: #fff;
	text-align: center;
	padding: 5px 0;
	border-radius: 6px;
	position: absolute;
	z-index: 1;
	top: 125%;
	right: 50%;
	margin-right: -250px;
	opacity: 0;
	transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	text-align: left;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

#xchart {
	width: 100vw;
	height: 100dvh;
	position: relative;
	overflow: hidden;
}

.panel-handle {
	cursor: move;
	background: #363c4e;
	padding: 2px 6px;
	border-radius: 4px;
	margin-right: 5px;
	font-size: 10px;
}

.selectedx {
	background-color: darkGreen;
	color: white;
}

#style-panel, #mini-settings {
	background-color: #fff;
	border: 1px solid #363c4e;
}

#style-panel {
	position: absolute;
	padding: 1px;
	z-index: 9999;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	color: white;
	font-family: iransansx;
	font-size: 12px;
	min-width: 450px;
	max-width: 480px;
}

.upper {
	margin-bottom: -5px;
	margin-right: 5px;
	width: 16px;
	height: 16px;
}

.fabtn {
	font-size: 16px;
	padding: 2px;
	border: none;
	background-color: inherit;
	color: gray;
}

.floating-panel {
	position: absolute;
	padding: 1px;
	z-index: 99;
	display: flex;
	align-items: center;
	gap: 4px;
	/*	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);*/
	color: white;
	font-family: iransansx;
	font-size: 12px;
}

.pane-settings-panel {
	position: absolute;
	background: #1e222d;
	border: 1px solid #363c4e;
	z-index: 999;
	color: white;
	font-family: iransansx;
	font-size: 18px;
	display: grid;
	width: 500px;
	margin-top: 100px;
	margin-right:15%;
	min-width: 350px;
	max-width: 80%;
}

#indicators-settings input[type="number"] {
	width: 80px;
	font-family: iransansx;
	text-align: center;
}

#indicators-settings select {
	min-width: 60px;
	padding: 1px;
	margin: 5px;
	font-family: iransansx;
	text-align: center;
}

#indicators-settings>div {
	min-height: 20px;
	padding: 10px;
	cursor: pointer;
}

#mini-settings {
	z-index: 1003;
}

#mini-settings>div {
	min-width: 180px;
	padding: 10px;
}

#mini-settings>div:hover {
	background-color: darkGreen;
	color: white;
}

#mini-settings>div:not(.independent):hover {
	cursor: pointer;
}

.private {
	position: fixed;
	top: 100px;
	left: 100px;
	background: #1e222d;
	border: 1px solid #363c4e;
	border-radius: 8px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	color: white;
	font-family: iransansx;
	font-size: 12px;
}

.panel-section {
	align-items: center;
	gap: 15px;
}

.panel-divider {
	width: 1px;
	height: 24px;
	background: #363c4e;
}

.floating-panel input[type="color"] {
	width: 20px;
	height: 20px;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.pane-settings-panel input[type="color"] {
	width: 60px;
	height: 40px;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.floating-panel select, .floating-panel button {
	background: #2a2e39;
	color: white;
	border: none; /*1px solid #434651;
/*	border-radius: 4px; */
	padding: 2px 4px;
	cursor: pointer;
	width: 20px;
	max-width: 40px;
}

.floating-panel button:hover {
	background: #363c4e;
}

input[type="range"] {
	appearance: none;
	-webkit-appearance: none;
	height: 8px;
	background: #434651;
	border-radius: 4px;
	cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 16px;
	background: #2196f3;
	border-radius: 50%;
}

.color-preview-btn {
	width: 16px;
	height: 8px;
	border: 1px solid #555;
	/*	border-radius: 3px;*/
	cursor: pointer;
	background-color: #2196f3;
}

.color-preview-btnx {
	width: 24px;
	height: 12px;
	border: 1px solid #555;
	cursor: pointer;
	background-color: #2196f3;
}

.fibo-levels-grid {
	position: absolute;
	top: 50px; /* زیر ردیف اول دکمه‌ها */
	left: 10px;
	display: grid;
	direction: ltr;
	grid-template-columns: repeat(1, 1fr);
	gap: 5px;
	background: #2a2e39;
	padding: 5px;
	border: 1px solid #434651;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	z-index: 10001;
	min-height: 170px;
	min-width: 300px;
}

.color-palette-grid, .color-palette-grid8 {
	position: absolute;
	top: 50px; /* زیر ردیف اول دکمه‌ها */
	left: 10px;
	display: grid;
	direction: ltr;
	grid-template-columns: repeat(12, 1fr);
	gap: 5px;
	background: #2a2e39;
	padding: 5px;
	border: 1px solid #434651;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
	z-index: 10001;
	min-height: 170px;
}

.color-palette-grid8 {
	grid-template-columns: repeat(6, 1fr);
}

.color-cell {
	width: 15px;
	height: 15px;
	cursor: pointer;
	border-radius: 1px;
	border: 1px solid #aaa;
}

.color-cell:hover {
	transform: scale(1.2);
	outline: 1px solid white;
}

.paneLegend {
	position: 'absolute';
	right: '60px';
	direction: "rtl";
	z-index: '1000';
	color: '#FFF';
	width: 'calc(100% - 100px)';
	height: '30px';
	padding: 5px;
	background-color: '#ff000010';
}

#mainchart>div.tv-lightweight-charts>table>tr:nth-child(3)>td:nth-child(2)>div,
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(5)>td:nth-child(2)>div,
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(7)>td:nth-child(2)>div
	{
	z-index: 11;
}

#mainchart>div.tv-lightweight-charts>table>tr:nth-child(3)>td:nth-child(2)>div>canvas:nth-child(1),
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(5)>td:nth-child(2)>div>canvas:nth-child(1),
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(7)>td:nth-child(2)>div>canvas:nth-child(1)
	{
	z-index: 12;
}

#mainchart>div.tv-lightweight-charts>table>tr:nth-child(3)>td:nth-child(2)>div>canvas:nth-child(2),
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(5)>td:nth-child(2)>div>canvas:nth-child(2),
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(7)>td:nth-child(2)>div>canvas:nth-child(2)
	{
	z-index: 14;
}

#mainchart>div.tv-lightweight-charts>table>tr:nth-child(3)>td:nth-child(3)>div,
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(5)>td:nth-child(3)>div,
	#mainchart>div.tv-lightweight-charts>table>tr:nth-child(7)>td:nth-child(3)>div
	{
	z-index: 14;
}

.vis {
 
	text-align: center;
	margin: 3px;
	align-items: center;
	justify-content: middle;
}

.floating {
	padding: 5px;
	border: 1px solid gray;
	cursor: pointer;
	text-align: center;
	right: 100%;
	position: absolute;
	min-width: 100px;
	background-color: black;
	color: white;
	display: none;
}

.floating:hover {
	background-color: darkgreen;
	color: white;
}

.dark-color-settings, .light-color-settings, .color-settings,
	.colorpicker {
	height: 10px;
	width: 10px;
	padding: 5px;
	min-height: 10px;
	min-width: 10px;
	border: 1px solid gray;
	background-color: gray;
}

.hexa {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
}

.color-picker-span {
	display: inline-block;
	width: 25px;
	height: 25px;
	overflow: hidden;
}

.penta {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.assyncHexa {
	display: grid;
	grid-template-columns: 7% 7% 21% 21% 21% 23%;
}

.quadeq {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.quad {
	display: grid;
	grid-template-columns: 40% 20% 20% 20%;
}

.thriple {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.dual {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.asyncDual {
	display: grid;
	grid-template-columns: 80% 20%;
}

.dual4060 {
	display: grid;
	grid-template-columns: 40% 60%;
}

.high30 {
	height: 30px;
	margin: 5px;
}

.high30.invisible {
	height: 0px;
}