@font-face {
  font-family: 'Kanit';
  src: url('/fonts/Kanit-ExtraLight.woff2') format('woff2');
  src: url('/fonts/Kanit-ExtraLight.woff') format('woff');
  font-weight: 400;
  font-style: light;
}

@font-face {
  font-family: 'Kanit';
  src: url('/fonts/Kanit-Light.woff2') format('woff2');
  src: url('/fonts/Kanit-Light.woff') format('woff');
  font-weight: 600;
  font-style: light;
}

@font-face {
  font-family: 'Kanit';
  src: url('/fonts/Kanit-Regular.woff2') format('woff2');
  src: url('/fonts/Kanit-Regular.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Kanit';
  src: url('/fonts/Kanit-Medium.woff2') format('woff2');
  src: url('/fonts/Kanit-Medium.woff') format('woff');
  font-weight: 800;
  font-style: bold;
}

@font-face {
  font-family: 'Kanit';
  src: url('/fonts/Kanit-SemiBold.woff2') format('woff2');
  src: url('/fonts/Kanit-SemiBold.woff') format('woff');
  font-weight: 900;
  font-style: bolder;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  /* color: rgb(0, 255, 0); */
}

:root {
  /* Heights */
  --mainHeader_Height: 2.1rem;
  /* Colors */
  --bgColor: #000000;
  --textColor: #e3e4ee;
  --appFrame_BgColor: rgb(16, 17, 22);
  --inputBgColor: #1c1b20;
  --inputLabelColor: #aca3a3;
  --gold: #ffed22ff;
  --direction_BUY: #00e676;
  --direction_SELL: #f23645 ;
  --direction_NEUTRAL: #aca3a3 ;
  --unlocked: #bdbdbd;
  --warning: #ff9800;
  --danger: #ff5715;
  --delete: rgb(180, 62, 62);
  --clearAll: rgb(196, 187, 51);
  --clear: rgb(221, 221, 221);
  --save: rgb(0, 158, 150);
  
  /* Layout */
  --menuPadding: 1rem;
  --buttonPadding: 0.3rem 0.6em;
}

html {
  font-size: 14px;
}

body {
  overflow-x: hidden;
  background: var(--bgColor);
  font-family: Kanit, sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--textColor);
}

header {
  display: flex;
  height: fit-content;
  justify-content: space-between;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

li {
  list-style: none;
  margin-inline: 1rem;
}

button {
  border-radius: 0.21rem;
  border-style: none;
  background-color: #ffffff00;
  padding: var(--buttonPadding);
  font-family: Kanit, sans-serif;
  cursor: pointer;
}

input, output {
  display: flex;
  font-family: Kanit, sans-serif;
}

.loading > .spinner {
  display: flex;
  margin: 3rem auto 0 auto;
  border: 12px solid var(--bgColor);
  border-top: 12px solid var(--inputBgColor);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.2s linear infinite; /* Animation effect */
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.asset-name-span {
  position: relative;
  display: flex;
  margin-top: 0.1rem;
  align-items: center;
  line-height: 1;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--textColor);
}

.contract-type-small {
  position: relative;
  bottom: 1px;
  display: inline-block;
  margin-left: 0.3rem;
  border-radius: 3px;
  background-color: var(--inputBgColor);
  padding: 0.15rem 0.3rem 0.15rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.timestamp-span {
  position: relative;
  display: block;
  bottom: -5px;
  margin-left: auto;
  /* line-height: 1; */
  font-size: 0.84rem;
  color: var(--textColor);
}

.timestamp-intro-msg {
  margin-right: 0.3rem;
}

.feedback-msg {
  position: relative;
  bottom: 48%;
  align-self: center;
  background-color: #eee3e3;
  color: var(--inputBgColor);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.3rem 0 0.3rem 0.3rem;
  padding: 0 3px;
  outline: none;
  width: fit-content;
  height: fit-content;
  border-radius: 0.25rem;
  text-align: center;
  align-self: center;
  z-index: 199;
}

/*---------------------------------------------Smaller Screen---------------------------------------*/


#mainHeader_Container {
  min-height: var(--mainHeader_Height);
}

#logo {
  height: 2.1rem;
  margin: 0.3rem 0.6em;
}

nav {
  display: flex;
  width: 100%;
  font-size: 1.3rem;
  font-weight: 900;
  height: 2rem;
  margin-bottom: 6px;
}

#sessionDisplay_Container {
  margin-left: auto;
  width: fit-content;
  display: inline-flex;
}

.auth-nav-ul {
  display: flex;
}


#navBar_Container {
  justify-content: space-between;
}

.nav-ul {
  display: flex;
  list-style: none;
  margin: 0.3rem;
  padding: 0px;
  align-items: center;
}

a {
  margin-inline: 0.6em 0.3em;
  text-decoration: none;
  color: var(--textColor);
  cursor: pointer;
}



/* --------------------- Main Content --------------------- */
main {
  display: flex;
  flex-direction: row-reverse;
  font-size: 0.8rem;
}

.asset-analisys-section-container {
  background-color: white;
  color: var(--save);
  height: 100vh;
  width: 100%;
  font-size: 3rem;
  font-weight: 900;
}

#RiskManager_Container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding-inline: 0.6rem;
  height: calc(100vh - var(--mainHeader_Height));
  align-self: center;
  background-color: var(--appFrame_BgColor);
  border-radius: .81rem;
}

/*------------------------- Calc Settings ----------------------*/
#openCalcSettingsMenu_Btn {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  width: fit-content;
  background-color: var(--appFrame_BgColor);
}

.settingsIcon {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--textColor);
}

#calcSettings_Container {
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border-radius: 1rem;
  font-size: 1.2rem;
  z-index: 3;
}

.close_CalcSettings_Container {
  top: 0;
  width: 100%;
  background-color: var(--appFrame_BgColor);
  padding: 0.9rem 0 0 0.9rem;
}

#closeSettings_Btn {
  margin-right: auto;
  margin-left: 0;
}

#calcSettings_Content_Container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  /*Hide scrollbar for IE, Edge*/
  -ms-overflow-style: none;
  /* Hide scrollbar for Firefox*/
  scrollbar-width: none;
  /* Ignores the hidden list's layout work */
  background-color: var(--appFrame_BgColor);
  padding: 0.9rem;
  border-radius: 1rem;
  font-size: 1.2rem;
}

.calc-settings-fieldset {
  display: flex;
  flex-direction: column;
  margin-block: 0.9rem;
  width: 100%;
  border: none;
}

.add-execution-data-btn {
  margin-left: auto;
  padding: var(--buttonPadding);
  background-color: var(--save);
}

/*************** Executed Order Form *************/

#ExecutedOrderForm_Container {
  position: absolute;
  top: 0;
  background-color: var(--appFrame_BgColor);
  width: 100%;
  height: 100%;
  padding: var(--menuPadding);
}

.execution-data-btn {
  border: 1px solid var(--textColor);
  padding: var(--buttonPadding);
  color: var(--textColor);
}

 /********** End of Executed Order Form **********/

.settings-field-container {
  position: relative;
  display: flex;
  border: none;
  align-items: center;
  justify-content: space-between;
}



.order-type-selector-title {
  display: flex;
  margin-right: 0.3rem;
}

label.calc-settings-field-label {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

small.order-type-name {
  font-size: 1em;
  text-align: right;
}

.switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.order-type-switch {
  position: relative;
  cursor: pointer;
  border-radius: 34px;
  width: 33px;
  height: 18px;
  margin-inline: 0.3rem;
  background-color: rgb(149, 224, 168);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.order-type-switch:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 1px;
  bottom: 1px;
  background-color: rgb(58, 58, 58);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.switch-input:checked + .order-type-switch {
  background-color: #f7e792;
}

.switch-input:focus + .order-type-switch {
  box-shadow: 0 0 1px #2196F3;
}

.switch-input:checked + .order-type-switch:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}

.slippage-range-input-container {
  position: relative;
}

.slippage-input{
  -webkit-appearance: none;
  margin-top: 0.3rem;
  width: 100%;
  background: transparent;
  height: 18px;
  /* background: linear-gradient(to right, rgb(183, 0, 0) 5%, rgb(201, 201, 0) 20%,  green 35%, rgb(163, 163, 163) 80%); */
}
.slippage-input:focus{
  outline: none;
}
.slippage-input::-webkit-slider-thumb{
  -webkit-appearance: none;
  height: 15px;
  width: 15px;
  background: #007bff;
  cursor: pointer;
  border-radius: 50%;
  margin-top: -6px;
}
.slippage-input::-moz-range-thumb{
  height: 15px;
  width: 15;
  background: #007bff;
  cursor: pointer;
  border-radius: 50%;
  border: none; 
}
.slippage-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  background: var(--inputLabelColor);
  border-radius: 4px;
  cursor: pointer;
}

/* Firefox */
.slippage-input::-moz-range-track {
  width: 100%;
  height: 1px;
  background: #ddd; /* Example track color */
  border-radius: 4px;
  cursor: pointer;
}

.slippage-datalist {
  position: absolute;
  display: flex;
  width: 100%;
  justify-content: space-between;
  top: 9px;
  z-index: -1;
}

.slippage-value {
  font-size: 0.6rem;
  color: var(--inputLabelColor);
}

/*--- Asset data Table ---*/
.calc-settings-asset-data-table-container {
  margin-top: 1rem;
  width: 100%;
  flex: 1;  border-collapse: collapse;
  border: 1px solid var(--inputLabelColor);
}

.calc-settings-asset-data-table-caption {
  width: 100%;
  text-align: center;
}

.calc-settings-asset-data-thead {
  border: 1px solid var(--inputLabelColor);
  border-radius: 0.3rem;
  font-weight: bold;
  font-size: 1rem;
}

.calc-settings-asset-data-subtitle-tr {
  font-weight: 700;
}

.calc-settings-asset-data-table-caption-asset-name-span {
  display: inline;
  margin-left: 0.3rem;
}

.calc-settings-asset-data-table-caption-contract-type-small {
  position: relative;
  bottom: 2px;
  margin-left: 0;
}

.calc-settings-asset-data-th {
  border: 1px solid var(--inputLabelColor);
}
.calc-settings-asset-data-th:nth-child(1) { 
  font-weight: 400;
}


.calc-settings-asset-data-td {
  border: 1px solid var(--inputLabelColor);
  padding-left: 0.3rem;
}


/*------------------------- Asset Selcetor -----------------*/
#assetSelector_Container {
  align-self: center;
  margin: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
}

#openAssetMenu_Btn {
  display: flex;
  flex-direction: row;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

#selectedAsset_Output {
  display: flex;
  height: 29px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--textColor);
}

#initialLoader[data-loading="true"] {
  display: block;
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-size: 1.2rem;
  clip-path: inset(0 100% 0 0);
  animation: l5 0.6s steps(11) 1;
}
#initialLoader[data-loading="true"]:before {
  content:"Loading..."
}
@keyframes l5 {to{clip-path: inset(0 -1ch 0 0)}}
#initialLoader[data-loading="false"] {
  display: none;
}

.asset-output-market-span {
  margin-right: 0.3rem;
}

#dropDownArrowIcon_Container {
  font-style: normal;
  color: var(--textColor);
}

.drop-down-icon {
  position: relative;
  /* top: 6px; */
  height: 24px;
  fill: var(--textColor);
}

[data-asset-selector-open="true"] > .selection-display > #selectAsset_Btn {
  display: none;
}

[data-asset-selector-open="false"] > .asset-menu-container {
  display: none;
  /* Extra performance boost: */
  content-visibility: hidden;
}

.asset-menu-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  height: 100%;
  width: 100%;
  overflow-y: hidden;
  background-color: var(--appFrame_BgColor);
  border-top: none;
  border-radius: 0.9rem;
  font-weight: 600;
  z-index: 99;
}

.asset-selector-header-container {
  display: flex;
  flex-shrink: 0;
  justify-content: start;
  padding: 1rem 1rem 0 1rem;
}

.search-bar-container {
  display: flex;
  flex-grow: 1;
  border-radius: 0.3rem;
  background-color: var(--textColor);
}

.search-icon-container {
  display: flex;
  border-radius: 0.3rem 0 0 0.3rem;
  padding: 0.3rem;
  background-color: var(--textColor);
  align-items: center;
}

.search-icon {
  width: 15px;
  height: 15px;
  stroke: var(--inputLabelColor);
}

#searchAsset_Input {
  flex-grow: 1;
  outline: none;
  border: none;
  border-radius: 0 0.3rem 0.3rem 0;
  padding: 0 0.3rem;
  background-color: var(--textColor);
  color: var(--inputBgColor);
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 3;
}

#clearSearch_Btn {
  display: flex;
  margin-inline: 0.9rem 0.45rem;
  height: 24px;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}
#clearSearch_Btn.hidden {
  display: none;
}

#close_SeachAssetMenu {
  display: flex;
  margin-left: 0.9rem;
  height: 24px;
  padding: 0 0 0.3rem 0;
  align-items: center;
  font-size: 3rem;
  color: var(--textColor);
}

.all-assets-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  height: 100%;
}

.controlls-container {
  position: static;
}

.search-history-container {
  padding-inline: var(--menuPadding);
}

.search-history-title-deleteBtn-container {
  margin-block: 0.9rem 0.3rem;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

#deleteHistory_Btn {
  display: inline-block;
  line-height: 1;
}

.trash-icon {
  width: 15px;
  height: 15px;
  fill: var(--inputLabelColor);
  pointer-events: none;
}

.search-history-asset-span {
  margin-right: 0.3rem;
  border-radius: 0.3rem;
  padding: 0.09rem 0.12rem 0.3rem 0.42rem;
  background-color: var(--inputBgColor);
  color: var(--textColor);
  font-size: 1.1rem;
  font-weight: 500;
}

.search-history-asset-contract-type-small {
  bottom: -2px;
  margin: 0;
}

.market-view-filters-container, .sub-view-filter-tabs-container {
  margin-top: 0.9rem;
  padding-inline: var(--menuPadding);
}
.market-view-filters-container {
  position: sticky;
  display: flex;
  top: 39px;
  z-index: 10;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--inputLabelColor);
}

.filter-tab {
  margin-right: 1rem;
  padding-left: 0.3rem;
  font-weight: 600;
  color: var(--inputLabelColor);
}

.filter-tab[data-active="true"] {
  color: var(--textColor);
}

.last-updated-date-container {
  display: flex;
  flex: 1;
  font-size: 0.9rem;
}

.sync-list-btn {
  position: relative;
  top: 1px;
  margin-left: 0.6rem;
  padding: 0
}

.sync-icon {
  width: 12px;
  height: 12px;
  fill: var(--textColor);
}
.sync-list-btn:disabled .sync-icon {
  fill: var(--inputBgColor);
  cursor: not-allowed;
}
.market-viewport {
  position: relative;
  width: 100%;
  /* Ignores the hidden list's layout work */
  contain: content;
  flex-shrink: 0;
  flex: 1;
  min-height: 0;
}

.market-list-track {
  display: flex;
  height: 100%;
  width: 200%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform; /* Hints the GPU */
}

.market-view-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 50%;
}

.asset-list-ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  min-height: 100%;
  height: fit-content;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  /*Hide scrollbar for IE, Edge*/
  -ms-overflow-style: none;
  /* Hide scrollbar for Firefox*/
  scrollbar-width: none;
  /* Ignores the hidden list's layout work */
  contain: size layout paint;
  flex: 1;
  min-height: 0;
}
.asset-list-ul::-webkit-scrollbar {
  /*Hide scrollbar for Chrome, Safari and Opera*/
  display: none;
}

.asset-list-ul li {
  display: flex;
  margin-block: 0.3rem;
  padding-inline: var(--menuPadding);
  contain: layout paint;
  height: 2rem;
}
.asset-list-ul[data-active-sub-view="favorites"] li:not(.is-favorite) {
    display: none;
}

.asset-list-ul li[data-focus="true"] {
  background-color: var(--bgColor);
  color: white;
  outline: none;
}


.no-results-message-container {
  position: absolute;
  display: flex;
  top: 6rem;
  width: 100%;
  height: 100%;
  height: fit-content;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--textColor);
}
.no-results-message-container.hidden {
  display: none;
}

.loading-error-message {
  margin: 3rem auto;
}

.add-to-favorites-btn {
  display: inline-block;
  margin-inline: 3px;
  line-height: 1;
  cursor: pointer;
}

.star-icon {
  height: 12px; 
  width: 12px;
  pointer-events: none;
}

.empty-star-icon {
  fill: var(--inputLabelColor);
}

.gold-star-icon {
  fill: var(--gold);
}

.select-asset-btn {
  display: flex;
  width: 100%;
  padding-block: 0.3rem;
  padding-left: 0.3rem;
  justify-content: left;
  border-radius: 0.3rem;
  cursor: pointer;
}

.select-asset-btn:hover {
  background-color: var(--inputBgColor);
}

.select-asset-btn-contract-type-small, .tradfi-span {
  bottom: 1px;
  padding-block: 0.18rem 0.21rem;
}

.tradfi-span {
  background-color: #322513;
  color:var(--warning);
}

/*------------------ Connection Status ------------------*/
.connectionStatus_Container {
  position: absolute;
  top: 1rem;
  right: 3.3rem;
  display: flex;
  align-items: center;
}

.connectionStatus_Description {
  margin-bottom: 3px;
}

.connectionStatus_Indicator {
  display: inline-block;
  margin-left: 3px;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--inputBgColor);
}


/*-------------- Saved Calculations --------------*/

#openSavedCalculations_Btn {
  position: absolute;
  right: 0.9em;
  top: 0.9em;
  display: inline-block;
  height: fit-content;
  width: fit-content;
  border-radius: 3px;
  background: #00000000;
}

.saved-calculations-icon {
  top: -18px;
  left: 0;
  height: 27px;
  width: 24px;
  fill: #eee3e3;
}

#allSavedCalculationsRecords_Container {
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border-radius: 1rem;
  background-color: var(--appFrame_BgColor);
  color: var(--textColor);
  font-size: 1.2rem;
  overflow-y: hidden;
  z-index: 3;
}

.close-window {
  display: flex;
  margin-left: auto;
  font-size: 2.4rem;
  cursor: pointer;
  width: fit-content;
  background-color: var(--appFrame_BgColor);
  line-height: 1;
  padding: 0;
  color: var(--textColor);
  border: none;
}

.close-clear-all-saved-calculations-btns-container {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0.9rem 0 0.9rem;
  justify-content: space-between;
}

.assets-in-records-container {
  display: flex;
  padding: 0.9rem 0.9rem 0.6rem 0.9rem;
}

.assets-in-records-btn {
  margin-right: 0.3rem;
  padding: 0 0.09rem;
  background-color: var(--inputBgColor);
  color: var(--inputLabelColor);
}

.assets-in-records-span {
  padding: 0.12rem 0.3rem 0.09rem 0.3rem;
  color: var(--inputLabelColor);
}

.assets-in-records-btn-contract-type-small {
  bottom: -1px;
  margin: 0;
}

.assets-in-records-btn:disabled .assets-in-records-span {
  color: var(--textColor);
}

.no-saved-calculations-p {
  display: flex;
  margin: 3rem auto;
}

.delete-all-saved-calculations-btn-container {
  display: flex;
  width: 100%;
  padding: var(--menuPadding)
}

#deleteAllSavedCalculationsRecords_Btn {
  align-self: flex-end;
  background-color: var(--appFrame_BgColor);
  padding: 0 0.18rem;
  border: 1px solid var(--delete);
  border-radius: 3px;
  color: var(--delete);
}

.no-records-asset-name-span {
  font-size: 1rem;
  margin-left: 0.3rem
}

.no-records-contract-type-small {
  bottom: -1px;
  margin: 0;
  background-color: #00000000;
}

#deleteAssetRecordsBtn_Container {
  display: flex;
  width: 100%;
  background-color: var(--appFrame_BgColor);
  padding: 0.6rem 0.9rem 0.6rem 0.9rem;
  z-index: 99;
}

#deleteAssetRecords_Btn {
  margin: 0.9rem auto 0.9rem 0;
  background-color: var(--appFrame_BgColor);
  border: 1px solid var(--clearAll);
  border-radius: 3px;
  padding: 0 0.18rem;
  color: var(--clearAll);
}

.no-saved-calculations-p {
  margin-inline: auto;
  padding-block: 2.1rem;
  font-size: 1rem;
}

#selectedAssetRecords_Container {
  /* border-radius: 0 0 0.9rem 0.9rem; */
  overflow-y: scroll;
  -ms-overflow-style: none;
  /* Hide scrollbar for Firefox*/
  scrollbar-width: none;
}

.calculations-records-container::-webkit-scrollbar {
  /*Hide scrollbar for Chrome, Safari and Opera*/
  display: none;
}

#deleteAssetRecordsBtn_Container {
  display: flex;
  flex-direction: column;
}

.showing-records-for-container {
  display: flex;
  justify-content: center;
}

.showing-records-for {
  margin-left: 0.3rem;
}

.saved-calculation-item:nth-child(even) {
  background-color: var(--appFrame_BgColor);
}
.saved-calculation-item:nth-child(odd) {
  background-color: var(--inputBgColor);
}

.saved-calculation-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.3rem 0.9rem 0.6rem 0.9rem;
  color: var(--textColor);
}

.saved-calculation-item-timestamp {
  display: flex;
  justify-content: flex-end;
}

.saved-calculation-item-btn {
  margin: 0.6rem 0.3rem 0.3rem 3px;
  padding: 0.3rem 0.6em;
  font-weight: 700;
}

.saved-calculation-item-delete-btn {
  background-color: var(--clear);
}

.saved-calculation-item-load-btn {
  background-color: var(--save);
}

/*------------------------------------------------- Calculator --------------------------------------------*/

.section-container {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 1.8rem;
}

.input-container {
  position: relative;
  display: flex;
  margin-block: 0.6em 0.06rem;
  background-color: var(--inputBgColor);
  border: 2px solid;
  border-color: var(--appFrame_BgColor);
  border-radius: 0.27rem;
  align-items: center;
}

.input-label {
  background-color: var(--inputBgColor);
  height: 1.2rem;
  border-radius: 0.25rem;
  margin: 0 0 0 0.3em;
  text-align: center;
  line-height: 1;
  color: var(--inputLabelColor);
  font-size: 1.2rem;
  font-weight: 700;
}

.input-span, .output-span {
  display: flex;
  width: 50%;
  margin-left: auto;
  height: 1.8rem;
  border-radius: 0.25rem;
  padding-right: 0.21rem;
  justify-content: space-between;
  align-items: center;
}

.input-span {
  background-color: var(--inputBgColor);
}

.base-asset-symbol-span, .quote-asset-symbol-span {
  /* position: relative;
  bottom: -1px; */
  margin-right: 0.21rem;
  /* display: flex; */
  justify-self: center;
  align-items: center;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 400;
}

.base-asset-symbol-span {
  bottom: 0px;
  font-size: 1.2rem;
}

.output-span {
  background-color: var(--appFrame_BgColor);
}

.input-field, .small-field {
  width: 100%;
  background-color: var(--inputBgColor);
  border-style: none;
  outline: none;
  border-radius: 0.25rem;
  padding-right: 0.21rem;
  color: rgb(255, 253, 253);
  text-align: end;
  font-family: Kanit, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.small-field {
  justify-content: flex-end;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 500;
  height: fit-content;
}

.input-field::-webkit-outer-spin-button,
.input-field::-webkit-inner-spin-button,
.small-field::-webkit-outer-spin-button,
.small-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.output-field {
  background-color: var(--appFrame_BgColor);
}

.locked, .locked > label, .locked > .input-span > button, .locked > .input-span > input, .locked > .input-span {
  background-color: var(--appFrame_BgColor);
}

.percentage-amount-container {
  position: relative;
  display: flex;
  margin-bottom: 0.15rem;
}

.percentage-amount-container:nth-child(1 of .percentage-amount-container) {
  margin-top: 0.6rem;
}

.percentage-symbol-small {
  position: relative;
  bottom: -1px;
  display: flex;
  margin-right: 0.2em;
  font-size: 1rem;
  line-height: 1;
}

.leverage-symbol-small {
  bottom: -2px;
}

.profit-percentage-symbol-small {
  bottom: -1px;
}

.risk-profit-amount-symbol-span {
  font-weight: 500;
}

.output-container {
  display: flex;
  width: 100%;
}

.output-span  {
  margin-left: auto;
  display: flex;
  justify-content: right;
}

.output-label {
  font-size: 1.1rem;
  margin: 0 0 auto 0.3em;
  text-align: center;
}

.sizeContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1px;
  margin-block: 0.6rem 0.39rem;
  border: 2px solid;
  border-color: var(--unlocked);
  border-radius: 0.25rem;
  padding-block: 0.3rem;
}

.leverage-span {
  margin: 2px 0.33rem 0 auto;
  height: 24px;
}
.leverage-span > .hidden, .output-span > .hidden {
  display: none;
}

.lotSizeLabel {
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: auto
}

.orderSizeOutput {
  position: relative;
  top: 1px;
  background-color: var(--appFrame_BgColor);
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: auto;
}
.riskRewardRatioOutput_Span {
  margin-right: 0.15rem;
}

/*---------------- Advanced Data Output ----------------*/

.advanced-data-output-label {
  display:flex;
  padding-inline: 0.3rem;
  font-size: 0.8rem;
}
.break-even-output-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.advanced-data-output {
  margin-inline: auto 0.21rem;
}

.advanced-data-symbol-span {
  position: relative;
  top: 0px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

/*----------- Unit Preference Btn -----------*/

.open-size-unit-selector-btn {
  display: flex;
  justify-self: flex-end;
  margin-inline: 0.18rem;
  line-height: 1;
  background-color: var(--inputBgColor);
  padding-inline: 0.3rem 0.18rem;
  color: var(--textColor);
  font-size: 1.2rem;
  font-weight: 700;
}

.size-unit-span {
  position: relative;
  top: 4px;
  display: flex;
  height: fit-content;
  min-width: 2rem;
  line-height: 1;
  text-align: center;
}

.size-unit-drop-down-icon {
  position: relative;
  top: 3px;
  padding-left: 0.18rem;
  height: 18px;
  width: 18px;
  fill: var(--textColor);
}

/*--------------------------- Unit Preference Menu ------------------*/
.unit-preference-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 98;
  border-radius: 0.81rem;
  background: #0000007c;
}

.unit-preference-menu-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  border-radius: 0.81rem;
  padding: var(--menuPadding);
  padding-inline: var(--menuPadding);
  background-color: var(--appFrame_BgColor);
  z-index: 99;
  backdrop-filter: blur(8px);
}

.unit-preference-menu-header-container {
  display: flex;
}

.unit-preference-h2 {
  margin-bottom: 0.6rem;
  display: inline;
  font-size: 1.2rem;
}

.close-unit-preference-menu-btn {
  margin-left: auto;
  color: var(--textColor);
}

.unit-preference-choice-btn {
  margin-top: 0.6rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--appFrame_BgColor);
  border-radius: 0.6rem;
  text-align: left;
  color: var(--textColor);
}
.unit-preference-choice-btn:focus {
  border-color: var(--textColor);
  outline: none;
}
.unit-preference-choice-btn:focus-within {
  border-color: var(--textColor);
}

.unit-preference-choice-container {
  width: 100%;
  border: 1px solid var(--inputBgColor);
  border-radius: 0.6rem;
  padding: var(--menuPadding)
}
.unit-preference-choice-btn:focus .unit-preference-choice-container {
  border-color: var(--appFrame_BgColor);
}
.unit-preference-choice-btn:focus-within .unit-preference-choice-container {
  border-color: var(--appFrame_BgColor);
}

.unit-preference-asset-name-span {
  font-size: 1rem;
  font-weight: 700;
}

.margin-asset-unit-radio-input-container {
  margin-top: 0.6rem;
  border: none;
}
.radios-flex-wrapper {
  display: flex;
}

.quote-asset-unit-radio-label {
  display: flex;
  margin-right: 1rem;
}

input[name="margin-asset-unit-radio-input"] {
  position: relative;
  bottom: -4px;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--textColor);
  border-radius: 50%;
  display: grid;
  place-content: center;
  cursor: pointer;
  margin-right: 0.3rem;
}
input[name="margin-asset-unit-radio-input"]::before {
  position: relative;
  left: 0;
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--appFrame_BgColor);
  transform: scale(0);
  transition: transform 0.1s ease-in-out;
}
input[name="margin-asset-unit-radio-input"]:checked, input[name="margin-asset-unit-radio-input"]:focus {
  border-width: 6px;
}
input[name="margin-asset-unit-radio-input"]:checked::before, input[name="margin-asset-unit-radio-input"]:focus::before {
  transform: scale(1);
}
input[name="margin-asset-unit-radio-input"]:focus {
  outline: none;
}

/* ------------------------------------- Warnings -------------------------------------------*/

div[data-ep-and-sl-are-equal="true"],
div[data-ep-and-tp-are-equal="true"],
div[data-under-min-price="true"],
div[data-over-max-price="true"],
div[data-tp-in-opposite-side="true"],
div[data-under-sized="true"],
div[data-over-sized="true"],
div[data-under-min-notional="true"] {
  border-color: var(--warning);
}

.info-icon-container {
  position: absolute;
  right: -2px;
  top: -1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.warnings-length-container {
  position: absolute;
  display: flex;
  left: 0.9rem;
  top: 0.075rem;
  width: 1.4rem;
  height: 1.07rem;
  border-radius: 0 1.5px 1.5px 0;
  padding: 0 6px 0 1px;
  align-items: center;
  justify-content: left;
  font-size: 1.3em;
  font-weight: bold;
}

.x {
  position: relative;
  top: 1px;
  margin-right: 1px;
  font-size: 0.8rem;
}

.warnings-container {
  position: absolute;
  bottom: 0.36rem;
  right: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  height: fit-content;
  z-index: 90;
}

.warning-info-container {
  width: 100%;
  border: 2px solid;
  border-radius: .3rem;
  padding: .3rem;
  background-color: var(--inputBgColor);
  font-size: 1rem;
  overflow-wrap: break-word;
}

/*-----------------Lock Btns -----------------*/
.lock-box {
  position: absolute;
  left: -18px;
  top: 6px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.price-lock-box {
  top: 0.42rem;
}

.lock-input {
  display: none;
  cursor: pointer;
  --webkite-user-select:none;
  --mos-user-select:none;
  --ms-user-select:none;
}

.lock-label {
  cursor: pointer;
}

.lock-input + label::before {
  content: '';
  display: block;
  width: 0.9em;
  height: 0.6em;
  border-style: solid;
  border-radius: 15px 15px 0 0;
  border-color: var(--unlocked);
  border-width: 2px 2px 0 2px;
  transform-origin: 1px;
  transform: rotateY(180deg);
  transition: all 0.3s;
}

.lock-input + label::after {
  content: '';
  display: inline-block;
  vertical-align: top;
  width: 0.9em;
  height: 0.6em;
  background: var(--unlocked);
  position: relative;
  transition: all 0.3s;
}

.lock-input:checked + label::before {
  border-color: var(--direction_BUY);
  transform-origin: -12px 10%;
  transform: rotateY(0deg);
}

.lock-input:checked + label::after {
  background: var(--direction_BUY);
}

/* ---------- Copy Buttons --------*/

.copy-btn {
  position: absolute;
  right: -24px;
  background-color: var(--appFrame_BgColor);
  margin-left: 0.3rem;
  padding: 0;
}
.size-copy-btn {
  bottom: 3px;
}

.break-even-copy-btn {
  top: -3px;
}

.copy-icon {
  fill: var(--direction_BUY);
  padding: 0;
  width: 1em;
  height: fit-content;
  font-size: 1.2rem;
}

input+.copyBtn {
  background-color: rgb(26, 26, 26);
}


/*---------------------------------- Place Order Button -----------------------*/
#placeOrder_Btn {
  margin: 0.6rem 0 0.6rem 0;
  padding: 0.6rem;
  background-color: var(--direction_BUY);
}

#placeOrder_Btn:disabled {
  background-color: var(--inputLabelColor);
}

/*------------------------------- Admin calculation--------------------------*/

.adminCalculation_Container {
  display: flex;
  margin: 1.8rem;
  justify-content: space-between;
}

.adminCalculation-btn {
  padding: 0.3rem 0.6em;
  font-size: 1.08em;
}

#deleteCalculation_Btn {
  margin-right: 0.6em;
  background-color: var(--delete);
}

#clearAll_Btn {
  margin-right: 0.6rem;
  background-color: var(--clearAll);
}

#clear_Btn {
  margin-right: 0.6rem;
  background-color: var(--clear);
}

#saveCalculation_Btn {
  margin-left: auto;
  background-color: var(--save);
}

/*--------------------------------------------Bigger Screen-----------------------------------------*/
@media (min-width: 426px) {
  #RiskManager_Container {
    max-width: 37.89em;
    margin: 0 auto;
  }
}

.leverage-symbol-small {
  bottom: -2px;
}

/*---------------Intro/ Article-------------------------------------------*/
#intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#title {
  align-self: center;
  font-size: 1.8rem;
}

#slogan {
  align-self: center;
  font-size: 1.5rem;
}

article {
  color: rgb(221, 221, 221);
  padding: 0.9rem;
  font-size: 1.2rem;
}

/*end of Stylesheet*/