/*
 * Global layout
 */
html, body, .viewport {
  width: 100%;
  height: 100%;
  margin: 0;
}
/*
 * Layout blocks
 */
.market-watch-container {
  flex-grow: 2;
  min-height: 200px;
  margin-top: 50px;
}
.chart-container {
  height: calc(100% - 40px);
  min-height: 200px;
}
@media (max-width: 767.98px) {
  .chart-container {
    height: calc(100% - 50px);
    min-height: 300px;
  }
}
.tv-wrapper {
  position: relative;
  box-sizing: content-box;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
}
.tv-container {
  width: 100%;
  background: transparent;
  padding: 0 !important;
}
.tv-iframe {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
/*
 * Utilities
 */
.mh-30px {
  max-height: 30px;
}
.mh-40px {
  max-height: 40px;
}
.mh-230px {
  max-height: 230px;
}
.mh-500px {
  max-height: 500px;
}
.h-300px {
  height: 300px;
}
.w-50px {
  width: 50px;
}
.pl-05 {
  padding-left: 0.5rem;
}
.pointer {
  cursor: pointer;
}
.invisible {
  opacity: 0;
}
.z-1 {
  z-index: 1;
}
.font-size-12 {
  font-size: 12px;
}
.no-select {
  cursor: default !important;
  user-select: none;
}
.drag-handle, .drag-handle * {
  cursor: grab !important;
  user-select: none;
}
.drag-handle:active, .drag-handle:active * {
  cursor: grabbing !important;
}
.no-scrollbars {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbars::-webkit-scrollbar {
  display: none;
}
.flex-grow-2 {
  flex-grow: 2;
  -webkit-box-flex: 2 !important;
}
.flex-grow-3 {
  flex-grow: 3;
  -webkit-box-flex: 3 !important;
}
.flex-grow-4 {
  flex-grow: 4;
  -webkit-box-flex: 4 !important;
}
.flex-grow-5 {
  flex-grow: 5;
  -webkit-box-flex: 5 !important;
}
.flex-grow-6 {
  flex-grow: 6;
  -webkit-box-flex: 6 !important;
}
.flex-grow-7 {
  flex-grow: 7;
  -webkit-box-flex: 7 !important;
}
.flex-grow-8 {
  flex-grow: 8;
  -webkit-box-flex: 8 !important;
}
.flex-grow-9 {
  flex-grow: 9;
  -webkit-box-flex: 9 !important;
}
.flex-grow-10 {
  flex-grow: 10;
  -webkit-box-flex: 10 !important;
}
.cell-1 {
  width: 1%;
}
.cell-2 {
  width: 2%;
}
.cell-3 {
  width: 3%;
}
.cell-4 {
  width: 4%;
}
.cell-5 {
  width: 5%;
}
.cell-6 {
  width: 6%;
}
.cell-7 {
  width: 7%;
}
.cell-8 {
  width: 8%;
}
.cell-9 {
  width: 9%;
}
.cell-10 {
  width: 10%;
}
.cell-20 {
  width: 20%;
}
.cell-25 {
  width: 25%;
}
.sticky-table-header {
  position: sticky;
  inset-block-start: 0;
}
.dark-header {
  background: #131722 !important;
}
/*
 * Header / nav
 */
.header-item {
  height: 50px !important;
}
.navbar-header {
  height: 50px !important;
}
.logo {
  line-height: 50px !important;
}
#page-header-user-dropdown {
  padding-bottom: 0;
  max-height: 50px;
  line-height: 35px !important;
}
/*
 * Cards & sections
 */
.statistics-card {
  border: 1px #e9e9ef solid;
  height: 100%;
}
.tv-lightweight-charts {
  border: 1px solid #e9e9ef;
}
.autotrade-card {
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.marketwatch-card {
  border-radius: 0 0 15px 15px;
  overflow-x: auto;
}
.chart-window-card {
  border-radius: 0 15px 15px 15px;
}
.chart-container iframe {
  border-radius: 0 0 15px 15px;
}
/*
 * Context menu
 */
.contextMenu {
  position: fixed;
  background-color: #FFFFFF;
  border: 1px dotted #222222;
  padding: 0 !important;
  z-index: 100;
}
[data-layout-mode=dark] .contextMenu {
  background-color: #131722 !important;
}
.optionsList {
  text-decoration: none;
  list-style: none;
}
.optionListItem {
  display: block;
  cursor: pointer;
  padding: 5px 10px;
  text-align: left;
}
li.optionListItem:hover {
  background-color: #f2f2f2;
}
[data-layout-mode=dark] li.optionListItem:hover {
  background-color: #1a1a1a !important;
}
.contextMenu-separator {
  border-top: 1px dotted #222222;
}
/*
 * Quote states / highlights
 */
.higher {
  background-color: #e5f8ed !important;
}
.lower {
  background-color: #ffeef2 !important;
}
[data-layout-mode=dark] .higher {
  background-color: inherit !important;
  color: #36d092 !important;
}
[data-layout-mode=dark] .lower {
  background-color: inherit !important;
  color: #f12a3b !important;
}
#order-window {
  z-index: 1091;
}
.positive {
  color: #04c61b !important;
}
.negative {
  color: #fa391f !important;
}
.spinner-grow-xs {
  --bs-spinner-width: 0.5rem !important;
  --bs-spinner-height: 0.5rem !important;
  --bs-spinner-vertical-align: 0rem !important;
  margin-left: 2px !important;
}
.chart-order-button {
  background-color: gray;
}
.chart-order-button:hover {
  background-color: red;
}
.autotrader-open,
.off-canvas-visible {
  overflow: hidden;
  padding-right: 0;
}
/*
 * Toolbox / tabs
 */
.toolbox-tab,
.autotrader-toolbox-tab {
  max-height: none;
  overflow: auto;
}
/*
 * React Resizable
 */
.react-resizable {
  position: relative;
}
.react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-origin: content-box;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+");
  background-position: bottom right;
  padding: 0 3px 3px 0;
}
.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-resizable-handle-w,
.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-resizable-handle-n,
.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}
/* Sticky config column/header in grid layouts */
.config-column {
  position: sticky;
  right: 0;
  padding: 0 16px !important;
}
.config-header {
  position: sticky;
  right: 0;
  padding: 0 12px !important;
  border-bottom: 0;
}
/* Custom resize handle hover styles */
.custom-resize-handle-vertical:hover,
.custom-resize-handle-horizontal:hover {
  background-color: #5b73e8 !important;
  border-color: #4e73df !important;
  transform: scale(1.1);
}
.custom-resize-handle-horizontal:hover {
  transform: scaleY(1.2);
}
.custom-resize-handle-vertical:hover div,
.custom-resize-handle-horizontal:hover div {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}
/*
 * React Dropdown Tree Select
 */
.tag {
  background-color: #f4f4f4;
  border: 1px solid #e9e9e9;
  padding: 2px 0 2px 2px;
  border-radius: 2px;
  display: inline-block;
}
.tag:focus-within {
  background-color: #e9e9e9;
  border-color: #a0a0a0;
}
.tag-remove {
  color: #a0a0a0;
  font-size: 75%;
  line-height: 100%;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
}
.tag-remove.disabled,
.tag-remove.readOnly {
  cursor: not-allowed;
}
.tag-remove:focus {
  color: #3c3c3c;
}
.node > label {
  cursor: pointer;
  margin-left: 2px;
  line-height: 1.1rem;
}
.node-label {
  color: white;
}
.tag-list {
  display: inline;
  padding: 0;
  margin: 0;
}
.tag-item {
  display: inline-block;
  margin: 4px;
}
.tag-item .search {
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
}
.tag-item:last-child {
  margin-right: 4px;
}
.node {
  list-style: none;
  white-space: nowrap;
  padding: 4px;
}
.nxs-app .node.tree {
  display: flex;
}
.node.leaf.collapsed {
  display: none;
}
.node.disabled > * {
  color: gray;
  cursor: not-allowed;
}
.node.match-in-children.hide .node-label {
  opacity: 0.5;
}
.node.focused {
  background-color: #131722 !important;
}
.toggle {
  white-space: pre;
  margin-right: 4px;
  cursor: pointer;
  min-width: 10px;
  text-align: center;
  line-height: 1.1rem;
  font-size: 1.1rem;
}
.toggle:after {
  content: " ";
}
.toggle.collapsed:after {
  content: "+";
}
.toggle.expanded:after {
  content: "-";
}
.searchModeOn .toggle {
  display: none;
}
/* custom checkboxes */
.nxs-app .checkbox-item {
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-right: 0.75rem;
  cursor: pointer;
  appearance: none;
  outline: 0;
  vertical-align: middle;
}
.nxs-app .checkbox-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 2px solid #FFFFFF;
  transition: all 0.1s ease-in-out;
}
.nxs-app .checkbox-item:checked:before {
  height: 50%;
  transform: rotate(-45deg);
  border-top-style: none;
  border-right-style: none;
  border-color: #6563ff;
}
.nxs-app .checkbox-item:indeterminate:before {
  height: 10%;
  margin-top: 40%;
  transform: rotate(-180deg);
  border-top-style: none;
  border-right-style: none;
  border-color: #6563ff;
}
.checkbox-item.simple-select,
.radio-item.simple-select {
  display: none;
}
.hide:not(.match-in-children) {
  display: none;
}
.react-dropdown-tree-select .dropdown {
  position: relative;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}
.react-dropdown-tree-select .dropdown .dropdown-trigger {
  padding: 4px;
  line-height: 20px;
  max-height: 200px;
  display: flex;
  overflow: auto;
  border: 1px solid #b9b9b9;
}
ul.tag-list {
  display: flex;
  flex-direction: column;
  flex-grow: 20;
}
.tag-item {
  display: flex;
  flex-grow: 1;
}
.react-dropdown-tree-select .dropdown .dropdown-trigger.arrow.bottom:after {
  content: "\\25BC";
  color: white !important;
  margin-right: 2px;
  flex-grow: 1;
  text-align: center;
  margin-top: 5px;
}
.react-dropdown-tree-select .dropdown .dropdown-trigger.arrow.top:after {
  content: "\\25B2";
  color: white !important;
  flex-grow: 1;
  text-align: center;
  margin-right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.react-dropdown-tree-select .dropdown .dropdown-content {
  position: absolute;
  width: 100%;
  top: 45px;
  padding: 4px;
  z-index: 1;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
  background-color: #131722 !important;
}
/* Dark-themed inputs inside dropdown */
.tag-item .search {
  background-color: rgb(19, 23, 34) !important;
  color: white !important;
}
/*
 * React Select (dark)
 */
[data-layout-mode=dark] .react-select__control {
  background: #131722;
  border-color: #2a2e39;
}
[data-layout-mode=dark] .react-select__control:hover {
  border-color: #4b5b87;
}
[data-layout-mode=dark] .react-select__control--is-focused {
  border-color: #5b73e8;
  box-shadow: 0 0 0 1px #5b73e8;
}
[data-layout-mode=dark] .react-select__control--is-disabled {
  background: #1a1e2e;
  opacity: 0.6;
}
[data-layout-mode=dark] .react-select__single-value {
  color: #FFFFFF !important;
}
[data-layout-mode=dark] .react-select__input-container {
  color: #FFFFFF !important;
}
[data-layout-mode=dark] .react-select__input {
  color: #FFFFFF !important;
}
[data-layout-mode=dark] .react-select__placeholder {
  color: #9ca3af;
}
[data-layout-mode=dark] .react-select__menu {
  background-color: #131722;
  border: 1px solid #2a2e39;
}
[data-layout-mode=dark] .react-select__menu-list {
  background-color: #131722;
}
[data-layout-mode=dark] .react-select__option {
  background-color: #131722;
  color: #FFFFFF;
}
[data-layout-mode=dark] .react-select__option:hover {
  background-color: #4b5b87;
}
[data-layout-mode=dark] .react-select__option--is-focused {
  background-color: #4b5b87;
}
[data-layout-mode=dark] .react-select__option--is-selected {
  background-color: #5b73e8;
  color: #FFFFFF;
}
[data-layout-mode=dark] .react-select__option--is-disabled {
  color: #6c757d;
  opacity: 0.5;
  cursor: not-allowed;
}
[data-layout-mode=dark] .react-select__indicator-separator {
  background-color: #2a2e39;
}
[data-layout-mode=dark] .react-select__dropdown-indicator {
  color: #9ca3af;
}
[data-layout-mode=dark] .react-select__dropdown-indicator:hover {
  color: #FFFFFF;
}
[data-layout-mode=dark] .react-select__clear-indicator {
  color: #9ca3af;
}
[data-layout-mode=dark] .react-select__clear-indicator:hover {
  color: #f12a3b;
}
[data-layout-mode=dark] .react-select__loading-indicator {
  color: #9ca3af;
}
[data-layout-mode=dark] .react-select__multi-value {
  background-color: #2a2e39;
}
[data-layout-mode=dark] .react-select__multi-value__label {
  color: #FFFFFF;
}
[data-layout-mode=dark] .react-select__multi-value__remove {
  color: #9ca3af;
}
[data-layout-mode=dark] .react-select__multi-value__remove:hover {
  background-color: #f12a3b;
  color: #FFFFFF;
}
[data-layout-mode=dark] .react-select__value-container {
  color: #FFFFFF;
}
[data-layout-mode=dark] .react-select__menu-notice {
  color: #FFFFFF;
}
/*
 * Bootstrap Form Controls (dark)
 */
[data-layout-mode=dark] .form-select {
  background-color: #131722;
  color: #FFFFFF;
  border-color: #2a2e39;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
[data-layout-mode=dark] .form-select:hover {
  border-color: #4b5b87;
}
[data-layout-mode=dark] .form-select:focus {
  background-color: #131722;
  color: #FFFFFF;
  border-color: #5b73e8;
  box-shadow: 0 0 0 0.25rem rgba(91, 115, 232, 0.25);
}
[data-layout-mode=dark] .form-select:disabled {
  background-color: #1a1e2e;
  color: #6c757d;
  opacity: 0.6;
}
[data-layout-mode=dark] .form-select option {
  background-color: #131722;
  color: #FFFFFF;
}
[data-layout-mode=dark] .form-control {
  background-color: #131722;
  color: #FFFFFF;
  border-color: #2a2e39;
}
[data-layout-mode=dark] .form-control:hover {
  border-color: #4b5b87;
}
[data-layout-mode=dark] .form-control:focus {
  background-color: #131722;
  color: #FFFFFF;
  border-color: #5b73e8;
  box-shadow: 0 0 0 0.25rem rgba(91, 115, 232, 0.25);
}
[data-layout-mode=dark] .form-control:disabled {
  background-color: #1a1e2e;
  color: #6c757d;
  opacity: 0.6;
}
[data-layout-mode=dark] .form-control::placeholder {
  color: #9ca3af;
}
/*
 * Holiday Manager (dark mode)
 */
[data-layout-mode=dark] .holiday-manager-accordion .accordion-item {
  background-color: #1a1d29;
  border: 1px solid #2d3348;
  margin-bottom: 0;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-item:first-of-type {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-item:last-of-type {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-button {
  background-color: #222736;
  color: #ced4da;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-button:not(.collapsed) {
  background-color: #2d3348;
  color: #fff;
  box-shadow: none;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-button:hover {
  background-color: #2d3348;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ced4da'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-body {
  background-color: #1a1d29;
  color: #adb5bd;
  padding: 1rem 1.25rem;
  border-top: 1px solid #2d3348;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-collapse {
  border-color: #2d3348;
}
/* Checkbox Styling for Dark Mode */
[data-layout-mode=dark] .holiday-manager-accordion .form-check-input {
  background-color: #2d3348;
  border-color: #495057;
}
[data-layout-mode=dark] .holiday-manager-accordion .form-check-input:checked {
  background-color: #556ee6;
  border-color: #556ee6;
}
[data-layout-mode=dark] .holiday-manager-accordion .form-check-input:focus {
  border-color: #556ee6;
  box-shadow: 0 0 0 0.2rem rgba(85, 110, 230, 0.25);
}
[data-layout-mode=dark] .holiday-manager-accordion .form-check-label {
  color: #ced4da;
  cursor: pointer;
}
[data-layout-mode=dark] .holiday-manager-accordion .form-check-label:hover {
  color: #fff;
}
/* Badge Styling */
[data-layout-mode=dark] .holiday-manager-accordion .badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}
[data-layout-mode=dark] .holiday-manager-accordion .badge.bg-secondary {
  background-color: #495057 !important;
}
[data-layout-mode=dark] .holiday-manager-accordion .badge.bg-primary {
  background-color: #556ee6 !important;
}
/* Group Header Styling */
[data-layout-mode=dark] .holiday-manager-accordion .accordion-header strong {
  color: #fff;
  font-size: 0.95rem;
}
/* Select All in Group Button */
[data-layout-mode=dark] .holiday-manager-accordion .accordion-body .btn-link {
  color: #556ee6;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}
[data-layout-mode=dark] .holiday-manager-accordion .accordion-body .btn-link:hover {
  color: #748ffc;
  text-decoration: underline;
}
/* Scrollbar Styling for Dark Mode */
[data-layout-mode=dark] .holiday-manager-accordion-container::-webkit-scrollbar {
  width: 8px;
}
[data-layout-mode=dark] .holiday-manager-accordion-container::-webkit-scrollbar-track {
  background: #1a1d29;
  border-radius: 4px;
}
[data-layout-mode=dark] .holiday-manager-accordion-container::-webkit-scrollbar-thumb {
  background: #495057;
  border-radius: 4px;
}
[data-layout-mode=dark] .holiday-manager-accordion-container::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}
/* Grouping Mode Selector */
[data-layout-mode=dark] .holiday-manager-grouping-selector {
  background-color: #2d3348;
  color: #ced4da;
  border-color: #495057;
}
[data-layout-mode=dark] .holiday-manager-grouping-selector:focus {
  background-color: #2d3348;
  color: #ced4da;
  border-color: #556ee6;
  box-shadow: 0 0 0 0.2rem rgba(85, 110, 230, 0.25);
}
/* Selection Counter */
[data-layout-mode=dark] .holiday-manager-selection-counter {
  color: #adb5bd;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
/* Improve visibility of accordion item borders */
[data-layout-mode=dark] .holiday-manager-accordion .accordion-item + .accordion-item {
  border-top: 0;
}
/*
 * Misc helpers
 */
.nxs-app {
  display: flex;
}
.bg-transition-slow {
  transition: background-color 1s ease;
}
.bg-transition-fast {
  transition: background-color 0.3s ease;
}
.icon-square {
  width: 20px;
  height: 20px;
  background-color: #d3d3d3;
  margin-right: 8px;
}
.loadingFade {
  background-color: rgba(90, 90, 90, 0.2);
}