html.dark-mode {
  background-color: #161616;
  color: #ffffff;
}
html.dark-mode {
    
    body {
        background-color: #161616 !important;
        color: #ffffff;  
    }
    .navbar-default {
        background-color: #323232;
        border-color: #323232;
    }

    .navbar-default .navbar-nav>li>a {
        color: #d1d1d1;
    }
    
    .navbar-default .navbar-nav > li > a:hover {
        color: #286090;
    }

    .container-fluid {
        background-color: #161616;
        color: #ffffff;
    }

    .table > tbody > tr > td, .table > tbody > tr > th {
        background-color: #161616;
        border-color: #323232;
    }

    .dropdown-menu, .multiselect-search, .multiselect-item .input-group-addon {
        background-color: #161616;
        border-color: #323232;
    }
    .dropdown-menu li a {
        color: #fff;
    }
    .dropdown-menu li a:hover {
        background: #d1d1d1;
        color: #161616;
    }
    .navbar-default .navbar-nav>.open>a {
        color: #161616;
    }

    select, input, textarea, .autocomplete-items div {
        background-color: #323232 !important;
        color: #ffffff !important;
        border: 1px solid #555 !important;
    }
    h1 {
        color: #d1d1d1;
    }
    .btn-grey {
        background-color: transparent;
    }
    .btn-grey:hover {
        background-color: white;
        color: #000;;
    }
    .btn-default {
        color: #333;
        background-color: transparent;
        border-color: #606060;
        color: #fff;
    }
    .btn-default:hover {
        background-color: #f7f7f7;
        color: #606060;
    }
    .btn-group a {
        border: 1px solid #323232 !important;
    }
    .modal-content {
        background-color: #161616 !important;
        color: #ffffff;
    }
    .insights-icon, .pnl-comparison-icon {
        color: #fff;
    }
    .pnl-comparison-area .table-comparison thead tr th {
        background: #161616 !important;
    }
    .insights-area thead th,
    .positions-table thead th,
    .back-tester-table thead th,
    .dca-table thead th,
    .history-table thead th,
    .orders-table thead th,
    .calender-table thead th,
    .pnl-comparison-area thead th,
    .pnl-calculator-area thead th,
    .raw-trades-datatable thead th,
    .back-combinations-table thead th,
    .position-log-table thead th,
    .ultimate-peak-taapi-table thead th,
    .log-ultimate-peak-table thead th,
    .auto-n8-table thead th,
    .etf-table thead th,
    .table-borderless thead th,
    .strategy-log-table thead th,
    .balancer-activity-table thead th
     {
        background: #323232 !important;
    }

    .tooltip-container .text-grey {
        color: #fff;
    }
    .bg-highest {
        background: #cebb81 !important;
    }
    .bg-highest .text-grey {
        color: #333;
    }
    .bg-highest small {
        color: #000 !important;
    }
    .text-muted {
        color: #9e9e9e;
    }

    .pnl-comparison-area .table-comparison .td-light, .pnl-calculator-area .table-calculator .td-light, .table-stats-bucket .td-light {
        background-color: #444444;
    }
    .pnl-comparison-area .table-comparison .td-dark, .pnl-calculator-area .table-calculator .td-dark, .table-stats-bucket .td-dark {
        background-color: #444444;
        color: #fff;
    }
    .pnl-comparison-area .table-comparison .td-dark .bold, .pnl-calculator-area .table-calculator .td-dark .bold {
        color: #fff;
    }
    .strategy-heading-area {
        border-bottom: 1px solid #464646;
        border-top: 1px solid #464646;
    }
    .strategy-heading-area span {
        color: #fff;
    }
    .strategy-badge {
        background-color: #292929;
    }
    .strategy-heading-area .remove-strategy-category {
        background-color: #292929;
    }
    .bt-input-row, .bt-stat-row div {
        background-color: transparent;
        border: 1px solid #3f3f3f;
    }
    .simple-small, .stat-title {
        color: #fff !important;
    }
    .market_timezones .country-label {
        background-color: #323232;
        color: #fff;
    }
    .set-param-btn:hover {
        background: #fff;
        color: #161616;
        border-radius: 2px;
    }
    .checkboxes-inline label:hover {
        color: #fff;
        background-color: #323232;
    }
    .taapi-icon {
        color: #fff;
    }
    .taapi-json-print {
        color: #fff;
        background:#323232;
    }
    .bold {
        color: #fff !important;
    }
    .text-orange {
        color: #f7a600 !important;
    }
    .text-green, .text-success, .text-buy {
        color: #20b26c !important;  
    }
    .text-red, .text-danger, .text-sell {
        color: #ef454a !important;  
    }
    .bg-highest {
        background: #ffebad !important;
    }
    .bg-light {
        background-color: #ddd !important;
    }
    .badge-Buy, .badge-in, .badge-success {
          background-color: #20b26c;  
    }
    .badge-Sell, .badge-out, .badge-danger {
          background-color: #ef454a;  
    }
    pre {
        color: #fff;
        background-color: #323232;
    }
    code {
        color: #fff;
        background-color: #323232;
        border: 1px solid #6c6c6c;
    }
    .login {
        background-color: #161616;
    }
    .dashbox { 
        background: #323232;
        border: none;
    }
    .btn-group .interval-btn {
        color: #fff;
    }
    .nav-tabs>li.active {
        background: #323232;
    }
}



body {
    overflow-y: scroll !important;
    font-family: 'Nunito';
}
.nav>li>a {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
.modal {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.navbar-right > .li-icon > a {
    border: 1px solid lightgrey;
    padding: 4px 9px;
    margin-top: 10px;
    border-radius: 25px;
    margin-left: 5px;
    font-size: 12px;
}
.navbar-right > .li-icon > a:hover {
    background-color: #808080 !important;
    color: #fff !important;
}
.container-modified {
    margin: 4% 2%;
}
h1 {
    display:inline-block;
    color: #444444;
}
.capitalize {
    text-transform: capitalize;
}
.w-auto {
    width: auto !important;
}
.w-100 {
    width: 100%;
}
.w-100p {
    width: 100px !important;
}
.w-150p {
    width: 140px !important;
}
.w-10p {
    width: 10% !important;
}
.mt-0 {
    margin-top: 0px !important;
}
.mt-1 {
    margin-top: 10px;
}
.mt-2 {
    margin-top: 15px;
}
.mt-4 {
    margin-top: 2.5rem;
}
.mb-1 {
    margin-bottom: 10px;
}
.mr-xs {
    margin-right: 5px;
}
.mr-1 {
    margin-right: 10px;
}
.mr-2 {
    margin-right: 20px;
}
.ml-1 {
    margin-left: 10px;
}
.ml-10 {
    margin-left: 10%;
}
.pb-0 {
    padding-bottom: 0px;
}
.f-12 {
    font-size: 12px;
}
.f-16 {
    font-size: 16px;
}
.f-18 {
    font-size: 18px !important;
}
.f-22 {
    font-size: 22px;
}
.w-80 {
    width: 80%;
}
.w-15 {
    width: 15% !important;
}
.inline-block {
    display: inline-block !important;
}
.display-none {
    display: none;
}
.btn-group {
        display: inline-block;
        text-align: right;
        width: 88%;
}
.btn-group a {
        color: #444444;
        padding: 10px;
        border: 1px solid #d3d3d3;
        text-decoration: none;
}
.btn-group a.active {
        background-color: #d3d3d3;
}
.btn-refresh {
    padding: 10px;
    margin-top: 10px;
    width: 50px;
}
.btn-grey {
    border: 1px solid lightgrey;
}
.btn-grey:hover {
    background-color: transparent;
}
.btn-exception {
    background-color: #a00404;
}
.btn-exception:hover {
    opacity: 0.9;
}
.btn-exception .fa {
    color: #fff;
}
.text-grey {
    color: #333;
}
.hard-reload {
    cursor: pointer;
    color: #337ab7;
    float: right;
}
#candlestickChart {
        width: 100%;
        height: 600px;
        margin-top: 2%;
}
.current-price {
        color: #000;
        font-size: 16px;
        margin-top: 15px;
}
.checkbox-label {
        font-size: 18px;
}
.side-Buy {
        color: #20b26c;
        font-weight: bold;
}
.side-Sell {
        color: #ef454a;
        font-weight: bold;
}
.current-price {
        color: #000;
        font-size: 16px;
        margin-top: 15px;
}
.mini-dropdown {
        width: 25%;
        float: right;
        margin-right: 1%;
}
.small-dropdown {
        width: 50%;
        float: right;
        margin-right: 1%;
}
.simple-small {
    color: #333 !important;
    font-weight: 100;
}
.dashboard-card {
        border: 1px solid lightgrey;
        padding: 5%;
        margin: 1%;
}
.graph-up {
        color: green;
        font-size: 18px;
        font-weight: 600;
}
.graph-down {
        color: red;
        font-size: 18px;
        font-weight: 600;
}
.bold {
    font-weight: bold;
    color: #333;
}
.f-bold {
    font-weight: bold;
}
.normal {
    font-weight: normal;
}
.text-orange {
    color: #f7a600 !important;
}
.text-green, .text-success, .text-buy {
    color: #20b26c !important;  
}
.text-red, .text-danger, .text-sell {
    color: #ef454a !important;  
}
.bg-highest {
    background: #ffebad !important;
}
.bg-light {
    background-color: #ddd !important;
}
.badge-Buy, .badge-in, .badge-success {
      background-color: #20b26c;  
}
.badge-Sell, .badge-out, .badge-danger {
      background-color: #ef454a;  
}
.pull-left {
    text-align: left;
}
.pull-right {
    text-align: right;
}
.badge {
    cursor: pointer;
}
.cursor {
    cursor: pointer;
}
.pointer {
    cursor: pointer;
}
.disabled {
        pointer-events: none;
}
input[type=range] {
    margin-top: 10px;
    margin-bottom: 10px;
}
.create-step-2 {
        display: none;
}

.autocomplete {
  position: relative;
  display: inline-block;
}
.autocomplete-items {
        position: absolute;
        border: 1px solid #d4d4d4;
        border-bottom: none;
        border-top: none;
        z-index: 98;
        /* top: 15%; */
        /* left: 3%; */
        /* right: 68%; */
        width: 30%;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}
.autocomplete-active {
  background-color: #e9e9e9 !important;
}

.dashbox {
    border: 1px solid lightgrey;
    padding: 10%;
    margin-top: 5%;
    text-align: center;
    border-radius: 5%;
    height: 180px;
}
.dashbox img {
    width: 150px;
}
.dashbox a {
    display: block;
    font-size: 18px;
    text-decoration: none;
    margin-top: 10px;
}


.login {
  margin: 20px auto;
  padding: 40px 50px;
  max-width: 300px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #979797;;
}
.login input[type=text], input[type=password], button[type=submit] {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin: 10px 0;
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 2px; 
    font-family: Raleway, sans-serif;
  }

.login input[type=text],
.login input[type=password] {
  border: 1px solid #c0c0c0;
  transition: .2s;
}

.login input[type=text]:hover {
  border-color: #F44336;
  outline: none;
  transition: all .2s ease-in-out;
} 

.login button[type=submit] {
  border: none;
  background: #6fc56f;
  color: white;
  font-weight: bold;  
  transition: 0.2s;
  margin: 20px 0px;
  cursor: pointer;
}

.login button[type=submit]:hover {
   opacity: 0.9;  
}

.alert {
    padding: 10px;
    width: 100%;
}
.alert-danger {
   background: #EF5350;
   color: white;   
}

.market_timezones div {
    display: inline-block;
    float: left;
    width: 19%;
    border: 1px solid lightgrey;
    padding: 10px;
    text-align: center;
    margin: 1% 1% 1% 0%;
}
.pnl-heading-total {
    font-size: 14px;
    margin-top: 10px;
}
.pnl-heading {
    font-size: 22px;
    display: inline-block;
    float: left;
    margin-top: 10px;
}
.pnl_stats div {
    display: inline-block;
    float: left;
    width: 10%;
    border: 1px solid lightgrey;
    padding: 10px;
    text-align: center;
    margin: 1% 1% 1% 0%;
    height: 90px;
}
.pnl_stats div strong {
    font-size: 14px;
}

.pnl_stats div .stats-output  {
    font-size: 16px;
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
.market_timezones .market {
  position: relative;
  padding: 10px;
}
.market_timezones div img {
    width: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.market_timezones div p {
    font-weight: bold;
    text-align: left;
    margin-top: 5px;
}

.market_timezones .market-current-time {
    font-size: 13px;
    width: 100%;
    display: block;
    padding: 10px;
    text-align: center;
}
    
.market_timezones div hr, .market_timezones div statuses {
    margin:10px;
}
.market_timezones .pnl-market-icon {
    width: 70px;
    display: inline-block;
    float: left;
    margin-left: 10px;
}

.market_timezones .country-label {
    position: absolute;
    top: -2.5px;
    left: 0px;
    background-color: #eef2ff;
    color: #333;
    font-weight: bold;
    font-size: 13px;
    padding: 3px 6px;
    width: 35px;
    border: none;
    border-bottom-right-radius: 10px;
}
.market_timezones div badge {
    color: #fff;
    display: inline-block;
    border-radius: 10px;
    height: 13px;
    width: 13px;
    margin-bottom: -2px;
    margin-left: 2px;
}


.pnl-limit label {
    width: 100%;
}

.pnl-limit input[type=number] {
    width: 80px !important;
    display: block;
}

.pnl-limit input[type=range] {
    display: inline-block;
    float: right;
    width: 70%;
}

.pnl-area #image-container {
    position: relative;
    display: inline-block;
}
.pnl-area .highlight-line.height {
    position: absolute;
    width: 100%;
    height: 1.5px;
    text-align: center;
    font-size: 10px;
    color: #fff;
    background-color: #079981;
    pointer-events: none;
}
.pnl-area .highlight-line.height.profit {
    background-color: #F23645 !important;
}
.pnl-area .highlight-line.height.loss {
    background-color: #bc108c !important;
}
.pnl-area .highlight-line.width {
    width: 80px;
    height: 18px !important;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    opacity: 0.75 !important;
    background-color: #00e878;
    position: absolute;
}
/*.pnl-area .highlight-line.width {
    width: 100px;
    height: 80px;
    margin-top: -38px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: transparent;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%2300e878"><path d="M256 32C114.6 32 0 125.1 0 240c0 49.6 25.3 94.9 66.83 129.4-8.914 32.48-33.44 57.42-33.75 57.71a8.001 8.001 0 0 0 6.391 13.89c66.41 0 116.2-31.25 139.4-48.13C202.3 400.3 228.4 408 256 408c141.4 0 256-93.13 256-208S397.4 32 256 32z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}*/
.pnl-area .highlight-line.width.profit {
    width: 120px !important;
    margin-top:-17px;
    background-color: #fa5a61 !important;
}
.pnl-area .highlight-line.width.loss {
    width: 120px !important;
    margin-top:-17px;
    background-color: #f221ee !important;
}
.pnl-screenshot-area {
    display: none;
}
.pnl-screenshot-area btm {
    margin-left: -10px;
}
.pnl-area .symbol-select {
    width: 60%;
    float: left;
    display: inline-block;
}
.pnl-area .external-link-btn {
    color: #808080;
    text-align: center;
    display: inline-block;
    font-size: 24px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    padding-bottom: 4px;
}
.pnl-thumbnail {
    text-align: center;
    border: 1px solid lightgrey;
    padding: 10px 5px;
    border-radius: 5px;
}
.pnl-thumbnail a {
    text-decoration: none;
}
.pnl-thumbnail img {
    width:150px;
    height:auto;
    border:1px solid #ccc;
    border-radius:8px;
}
.pnl-thumbnail span {
    display: block;
    margin-top:5px;
    font-size:13px;
}
.pnl-thumbnail .btn-remove {
    background-color: #F0534F;
    border: none;
    color: #fff;
    display: block;
    float: right;
    margin-left: -30%;
    z-index: 1000;
    position: relative;
    margin-top: -5px;
    padding: 3px 8px;
    border-radius: 25px;
}


.api-profiles input[type=checkbox], .pnl-area input[type=checkbox], .toggle-area input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.api-profiles .label-switch, .toggle-area .label-switch {
    cursor: pointer;
    text-indent: -9999px;
    width: 60px;
    height: 25px;
    background: grey;
    display: inline-block;
    border-radius: 100px;
    position: relative;
}
.api-profiles .label-switch:after, .toggle-area .label-switch:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 90px;
    transition: 0.5s;
}
.api-profiles input:checked + label, .toggle-area input:checked + label {
    background: #286090;
}
.api-profiles input:checked + label:after, .toggle-area input:checked + label:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
}

.blurred-btn {
    cursor: pointer;
}
.blurred-text {
    filter: blur(6px);
    transition: filter 0.3s ease;
    user-select: none;
}
.blurred-text.visible {
    filter: none;
}
.dataTables_wrapper {
    margin-top: 2% !important;
}


table > tbody > tr > td {
    font-size: 13px !important;
}
.top-price-area {
    color: #F7931A !important;
    padding: 5px 15px !important;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold !important;
    text-decoration: none !important;
}
.top-price-show {
    color: grey !important;
}
.notification-alert-msg {
    margin-top: 8px;
    padding-top: 8px;
    height: 30px;
    font-size: 10px;
    display: inline-block;
    width: 25%;
    text-align: center;
    color: #808080;
    margin-left: 9%;
    /*visibility: hidden;*/
    font-size: 13px;
}
.close-notification {
    margin-left: 10px;
    border: 1px solid lightgrey;
    padding: 1px 5px;
    cursor: pointer;
    border-radius: 15px;
}
.close-notification:hover {
    background-color: #808080;
    color: #fff;
}
.multi-update-btn {
    float: right;
    display: none;
}

.loader, .custom-loader {
    display: none;
    border: 7px solid #f3f3f3;
    border-top: 7px solid #333333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin-left: 48%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-height: 230px;       /* Limit height */
    overflow-y: auto;         /* Enable scroll */
    z-index: 9999;
    padding: 5px;
    border-radius: 8px;
}

.toast {
    background: #333;
    color: white;
    min-width: 350px;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    position: relative;
    transition: opacity 0.3s ease-out;
    opacity: 1;
}

.toast.fade-out {
    opacity: 0;
}

.toast button.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
    float: right;
}
#close-all-toasts-btn {
    background: #333333;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
}
#close-all-wrapper {
    position: sticky;
    bottom: 0;
    padding-bottom: 5px;
    z-index: 10;
}
#toast-container::-webkit-scrollbar {
    width: 6px;
}

#toast-container::-webkit-scrollbar-track {
    background: transparent;
}

#toast-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3); 
    border-radius: 3px;
}

/* Firefox (limited support) */
#toast-container {
    scrollbar-width: thin;
    scrollbar-color: rgb(145 145 145 / 30%) transparent;
}


.profile-column {
    display: none;
}

.multiselect-container {
    width: 300px !important;
    max-height: 300px !important;
    overflow-y: auto;
    overflow-x: hidden;
}
.multiselect-selected-text {
    display: inline-flex;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 90%;
}
.multi-area .btn-group, .multi-area  .multiselect {
    width: 100% !important;
}


.insights-area .scrollable-table {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 200px;
    margin-top: -2px;
}

.pnl-comparison-area .scrollable-table,
.pnl-calculator-area .scrollable-table,
.back-combinations-area .scrollable-table {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    margin-top: -2px;
}


/* Ensure table stretches fully and doesn't break layout */
.insights-area table,
.pnl-comparison-area table,
.pnl-calculator-area table  {
    width: 100%;
    border-collapse: collapse; /* Keeps borders clean */
    table-layout: fixed;
}

/* Sticky and styled header cells */

.insights-area thead th,
.positions-table thead th,
.back-tester-table thead th,
.dca-table thead th,
.history-table thead th,
.orders-table thead th,
.calender-table thead th,
.pnl-comparison-area thead th,
.pnl-calculator-area thead th,
.raw-trades-datatable thead th,
.back-combinations-table thead th,
.position-log-table thead th,
.ultimate-peak-taapi-table thead th,
.log-ultimate-peak-table thead th,
.auto-n8-table thead th,
.etf-table thead th,
.balancer-activity-table thead th,
.balancer-tester-table thead th,
.strategy-log-table thead th {
    position: sticky !important;
    top: 0 !important;
    background: #F9F9F9 !important;
    z-index: 10 !important;
}
.etf-table tbody tr:first-child td {
    font-weight: bold;
}
/* Ensure tbody cells match border style */

.pnl-comparison-area .table-comparison thead tr th {
    position: sticky !important;
    top: 0;
    background: #fff;
    z-index: 10;
}
.pnl-comparison-area .table-comparison tfoot tr td {
    position: sticky !important;
    bottom: 0;
    background: #fff;
    z-index: 10;
}
.insights-area .table>tbody>tr>td,
.pnl-comparison-area .table>tbody>tr>td,
.pnl-calculator-area .table>tbody>tr>td {
    padding: 4px 10px !important;
    border: 1px solid #efefef;
    word-wrap: break-word; /* Important for fixed layout */
}
.insights-area .table-comparison>tbody>tr>td,
.pnl-comparison-area .table-comparison>tbody>tr>td,
.pnl-calculator-area .table-calculator>tbody>tr>td {
    padding: 8px 10px !important;
    border: 1px solid #efefef;
    word-wrap: break-word;
}

.pnl-comparison-area .table-comparison .td-dark,
.pnl-calculator-area .table-calculator .td-dark,
.table-stats-bucket .td-dark {
    background-color: #f8f8f8;
    color: #333;
}

.pnl-comparison-area .table-comparison .td-light,
.pnl-calculator-area .table-calculator .td-light,
.table-stats-bucket .td-light {
    background-color: #f8f8f8;
    color: #333;
}

.insights-area .filterout-table .dataTables_wrapper {
    margin-top: 0% !important;
}
.insights-area .filterout-table .dataTables_length,
.insights-area .filterout-table .dataTables_filter,
.insights-area .filterout-table .dataTables_info,
.insights-area .filterout-table .dataTables_paginate {
    display: none;
}

.insights-icon {
    cursor: pointer;
    color: #808080;
    margin-left: 5px;
    margin-right: 5px;
}

.insights-market h5 {
    background-color: #337ab7;
    padding: 5px 10px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0px;
}
.insights-filter-area {
    text-align: right;
    width: 100%;
    margin-top: -30px;
}
.insights-filter-area select {
    border: 1px solid lightgrey;
    border-radius: 3px;
}
.insights-area .filters {
    display: inline-block;
    width: 25%;
    float: right;
    margin-left: 1%;
}
.pnl-comparison-area .filters, .pnl-log-area .filters {
    display: inline-block;
    width: 17%;
    float: right;
    margin-left: 1%;
}
.pnl-calculator-area .filters {
    display: inline-block;
    width: 17%;
    float: right;
    margin-left: 1%;
}
.back-combinations-area .filters {
    display: inline-block;
    width: 6%;
    float: right;
    margin-left: 5px;
}
.back-combinations-area .filters label {
    font-size: 13px;
}
.pnl-sum {
    font-weight: bold;
    width: 60px;
    display: inline-block;
}
.pnl-comparison-icon {
    display: inline-block !important;
    color: #808080;
    cursor: pointer;
}
.pnl-partial-column {
    display: none;
}
.history-sumbox {
    width: 9%;
    display: inline-block;
    float: left;
    padding: 10px;
    border: 1px solid #ccc;
}

.duration-dates-area {
    display: none;
    margin-top: 10px;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.custom-tooltip {
  display: none;
  position: absolute;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: normal;
  z-index: 999;
  font-size: 12px;
  width: 150px;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Show tooltip on hover */
.tooltip-container:hover .custom-tooltip {
  display: block;
}

/* Tooltip on the right */
.tooltip-right .custom-tooltip {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 10px;
}

/* Tooltip on the left */
.tooltip-left .custom-tooltip {
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 10px;
}

/* Tooltip on the top (above text) */
.tooltip-top .custom-tooltip {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
}

/* Tooltip on the bottom (below text) */
.tooltip-bottom .custom-tooltip {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
}
.mini-tooltip {
    width: 100px;
    text-align: left !important;
}
.small-tooltip {
    width: 150px;
    left: 20px;
    text-align: left !important;
}
.medium-tooltip {
    width: 200px;
    left: 20px;
}
.midmax-tooltip {
    width: 250px;
    left: 20px;
}
.max-tooltip {
    width: 300px;
    left: 20px;
}
.large-tooltip {
    width: 350px;
    left: 20px;
}
/* Show on hover */
.tooltip-container:hover .custom-tooltip {
  display: block;
}
.tooltip-options {
    width: 100%;
    border-bottom: 1px solid grey;
    padding: 5px;
}
.tooltip-options .btn {
    float: right;
    margin-top: -2px;
}
.kline-deep-limit {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid lightgrey;
    display: inline-block;
    width: auto !important;
}

.kline-insights-disabled {
    background-color: #ffd0d0;
    pointer-events: none;
}
.kline-insight-toggle {
    float: right;
    display: inline-block;
    margin-right: 15px;
}

.dimmed {
    opacity: 0.3;
    pointer-events: none;
}
.disabled-td {
    background-color: #f5f5f5;
    color: #aaa;
}
.modal-md {
    width: 700px;
}
.modal-medium {
    width: 900px;
}
.modal-lg {
    width: 1400px;
    z-index: 9999 !important;
}
.modal-lg {
    width: 1400px;
    z-index: 9999 !important;
}
.modal-xl-lg {
    width: 1500px;
}
#PnlChartModal, #InsightsModal, #PnlComparisonModal, #PnlCalculatorModal, #KlineDeepModal {
    z-index: 10001 !important;
}
#PositionLogDataModal {
    z-index: 9999 !important;
}
#UltimatePeakTaapiModal, #TaapiViaTimestampModal {
    z-index: 9998 !important;
}
#strategypnlModal {
    z-index: 9997 !important;
}
#strategyTemplatesModal {
    z-index: 9996 !important;
}
.custom-footer {
    width: 100%;
    margin-top: 10px;
    text-align: right;
}
.pnl-total-toggle {
    float: right;
    display: inline-block;
    margin-right: 15px;
}
.bt-top-row .col-md {
    margin-left: 10px;
}
.bt-input-row {
    background: #fbfbfb;
    margin: 2px;
    padding: 10px;
    border: 1px solid lightgrey;
}
.bt-hit-buy {
    color: #286090 !important;
    font-weight: bold;
}
.bt-hit-tp, .bt-hit-TP {
    color: #20b26c !important;
    font-weight: bold;
}
.bt-hit-sl, .bt-hit-SL {
    color: #ef454a !important;
    font-weight: bold;
}
.bt-hit-tl, .bt-hit-TL {
    color: #0077b5 !important;
    font-weight: bold; 
}
.bt-hit-lq, .bt-hit-LQ {
    color: #f7a600 !important;
    font-weight: bold; 
}
.bt-hit-reset {
    color: #5aca40 !important;
    font-weight: bold; 
}
.bt-column {
    width: 6.5%;
    margin-left: 5px;
    display: inline-block;
}
.bt-stat-row div {
    width: 8%;
    display: inline-block;
    float: left;
    border: 1px solid lightgrey;
    padding: 10px;
    margin-right: 4px;
}
.bt-stat-row .st {
    width: 10.6%;
}
.bt-input-row .col-md {
    width: 11% !important;
    display: inline-block;
    margin-left: 1%;
} 
.bt-stats-area {
    margin-top: 2%;
    margin-bottom: 8%;
}
.bt-human-duration {
    font-size: 14px;
    font-weight: normal;
    float: right;
}
.strategy-badge {
    display: inline-block;
    min-width: 15px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    /* color: #fff; */
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: gold;
    border-radius: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
}
.strategy-badge .btn-close {
    font-size: 14px !important;
    background: transparent;
    border: none;
}
.strategy-heading-area {
    border-bottom: 1px solid lightgrey;
    border-top: 1px solid lightgrey;
    padding-bottom: 5px;
    padding-top: 5px;
}
.strategy-heading-area .remove-strategy-category {
    font-size: 15px;
    padding: 0px 8px;
    border-radius: 4px;
    border: 1px solid gray;
    font-weight: bold;
    margin-left: 5px;
}
.strategy-tag {
    cursor: pointer;
    border-radius: 30px;
    height: 19px;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    font-weight: 600;
    background-color: #959595;
    color: #fff;
}
.strategy-tag:hover {
    color: #fff;
}
/*.strategy-tag-p1 {
    border: 1px solid #5cb85c !important;
    font-weight: bold;
    color: #5cb85c;
}*/
.strategy-tag-p1:hover, .strategy-tag-p2:hover,  .strategy-tag-additional:hover  {
    background-color: transparent;
    color: #959595;
    border: 1px solid #959595 !important;
}
/*.strategy-tag-p2 {
    border: 1px solid #337ab7 !important;
    font-weight: bold;
    color: #337ab7;
}*/

/*.strategy-tag-additional { 
    border: 1px solid #46b8da !important;
    font-weight: bold;
    color: #46b8da;
}*/
.strategy-tag-risk {
    background-color: #d9534f;
    font-weight: bold;
    color: #fff;
}
.strategy-tag-risk:hover {
    background-color: transparent;
    color: #d9534f;
    border: 1px solid #d9534f !important;
}
.strategy-tag-conditions { 
    background-color: #337ab7;
    font-weight: bold;
    color: #fff;
}
.strategy-tag-conditions:hover {
    background-color: transparent;
    color: #337ab7;
    border: 1px solid #337ab7 !important;
}
.strategy-positions-tag {
    cursor: pointer;
    border: 1px solid lightgrey;
    padding: 0px 10px;
    font-size: 11px;
    border-radius: 10px;
    margin: 0px 2px;
}
.strategy-positions-tag:hover {
    background: #808080 !important;
    color: #fff;
}
.strategy-positions-heading {
    margin-top: 10px;
    font-weight: 500px;
}
.spike {
    display: none;
}
.set-param-btn {
    border: 1px solid lightgrey;
    padding: 0px 8px;
    border-radius: 2px;
    cursor: pointer;
}
.set-param-btn:hover {
    background: #808080;
    color: #fff;
    border-radius: 2px;
}
.combinations-total-length {
    float: left;
    font-weight: bold;
    font-size: 16px;
}
.skip-checkbox {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 10px;
}
.checkboxes-inline label {
    display: inline-block;
    margin-right: 10px;
    border: 1px solid lightgrey;
    padding: 2px 10px;
    font-size: 13px;
    cursor: pointer;
}
.checkboxes-inline label:hover {
    color: #fff;
    background-color: #808080;
}
.bucket-symbol {
    border: 1px solid lightgrey;
    padding: 2px 10px;
    border-radius: 5px;
}
.bucket-symbol .fa-times {
    cursor: pointer;
    border: 1px solid lightgrey;
    padding: 2px 4px;
    border-radius: 15px;
    font-weight: normal;
}
.bucket-symbol .fa-times:hover {
    background-color: #808080;
    color: #fff;
}
.buckets-selection-list {
    float: right;
}
.min-bucket-div {
    padding-top: 5px;
    text-align: right;
    margin-right: 3%;
    display: inline-block;
    float: right;
}
.min-bucket-div input {
    width: 100px;
    font-weight: bold;
    float: right;
    margin-top: -10px;
}
.duplicate-icon {
    cursor: pointer;
    margin-left: 10px;
    background: #808080;
    padding: 3px 5px;
    color: #fff;
    border-radius: 5px;
}
.taapi-icon {
    cursor: pointer;
    color: #777777;
    font-size: 16px;
}
.taapi-json-print {
    background:#f4f4f4;
    padding:10px;
    border-radius:5px;
    overflow:auto;
}
.fred-badge {
    padding: 0px 5.5px;
    color: #fff;
    font-size: 8px;
    border: none;
    border-radius: 25px;
    text-transform: capitalize;
    text-align: center;
    margin-right: 10px;
}
.fred-badge.today {
    background: #f7a600 !important;
}
.fred-badge.future {
    background: #20b26c !important;
}
.fred-badge.past {
    background: #ef454a !important;
}
tr.skipped-row td {
    opacity: 0.5;
    background-color: #f7f7f7 !important;
}
.history-pnl-stats {
    float: right;
    font-size: 16px;
    margin-top: 7px;
}
.pnl-raw-top-area {
    margin-top: 2.5rem;
}
.pnl-raw-top-area label {
    padding-top: 10px;
}
.pnl-raw-top-area select {
    display: inline-block;
    float: right;
    width: 200px;
}
.raw-stats-heading {
    display: inline-block;
}
.calender-alert {
    margin-top: 15px;
    margin-left: 10px;
    margin-right: 10px;
}
.calender-alert a {
    color: grey;
}
.date-next, .date-prev {
    margin-left: 1px;
    width: 20px;
    display: inline-block;
    border-radius: 25px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
}
.date-next:hover , .date-prev:hover {
    color: #333;
    background-color: #e6e6e6;
}
.date-prev-tooltip, .date-next-tooltip {
    display: none;
}
.taapi-timestamp-icons {
    display: inline-block;
    margin-top: -5px;
}
.taapi-timestamp-icons span {
    padding: 10px;
    cursor: pointer;
}
.taapi-timestamp-icons span:hover {
    background: #eeeeee;
    border-radius: 10px;
}
.taapi-symbol-option {
    padding: 3px 10px;
    border: 1px solid;
    margin-top: 10px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px;
    font-size: 12px;
}
.taapi-symbol-option:hover {
    background-color: #808080;
    color: #fff;
}
.bucket-check-area {
    margin-top: -20px;
    margin-right: 10px;
    float: right;
}
.stat-title {
    font-weight: bold;
    color: #000;
}
.log-icon {
    font-size: 16px;
    border: 1px solid lightgrey;
    padding: 5px 7px;
    padding-left: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.step-value {
    font-weight: bold;
    border: 1px solid lightgrey;
    padding: 1px 5px;
    float: right;
    width: 50px;
}
.fetch-log-toggle {
    margin-right: 25px;
    float: right;
    display: inline-block;
}
.trend-bullish, .momentum-bullish {
    color: #20B26C;
    font-weight: bold;
}
.trend-bearish, .momentum-bearish {
    color: #ef454a;
    font-weight: bold;
}
.position-multi-close-area .greater-less-area .form-group {
    width: 48% !important;
    display: inline-block;
}
.eliminate-btn {
    display: none;
}
.skip-duration-area {
    width: 20%;
    display: inline-block;
    float: left;
    margin-left: 15px;
}
.ultimate-peak-stats-area {
    margin-bottom: 8%;
}
.ultimate-peak-stats-area .stat-box {
    width: 10.5%;
    display: inline-block;
    float: left;
    padding: 10px;
    border: 0.5px solid #ccc;
    margin-right: 0.5%;
    margin-top: 0.5%;
}
.snapshot-populate-tag {
    width: 250px;
    display: block;
}
.column-kline {
    display: none;
}
.link-reset {
    display: inline-block;
    float: right;
    text-align: right;
    cursor: pointer;
    color: #337ab7;
}
.strategy-section .col {
    margin-bottom: 10px;
}
.strategy-section .multiselect {
    width: 100% !important;
}
.strategy-section .conditions-area {
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.strategy-section .condition-options {
    display:flex;
    gap:8px;
    align-items:center;
}
.params-table {
    margin-top: 10px;
}
.auto-badge, .select-badge {
    padding: 3px 15px;
    border-radius: 25px;
    background: #919191;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    margin-top: 8px;
}
.strategy-section label {
    margin-top: 10px;
}
.strategy-section .symbols-alert {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #F0534F;
}
.strategy-cost {
    float: right;
    color: #ef454a !important;  
}
.strategy-diff-json {
    background-color: #fffa90 !important; 
    font-weight: bold !important; 
}
.strategy-grid {
    display: none;
    font-weight: bold;
}
.symbol-sortings-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* spacing between items */
}

.symbol-sort-item {
    align-items: center;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    flex: 1 1 calc(20% - 10px);
    box-sizing: border-box;
    width: 23%;
    display: inline-block;
    margin: 0.5%;
}

.symbol-sort-item .sort-handle {
    margin-right: 6px;
    cursor: move;
    font-size: 16px;
    color: #495057;
}

.symbol-sort-item .symbol-order-input {
    width: 40px;
    margin-right: 8px;
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.symbol-sort-item .symbol-name {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.group-stats-heading {
    display: inline-block;
    float: left;
    margin-left: 15px;
}
.group-stats-filters {
    display: inline-block;
    float: right;
    width: 15%;
    margin-left: 2%;
    margin-bottom: 5px;
}
.liq-btn {
    color: #f7a600 !important;
    font-weight: bold;
    font-size: 13px;
}

@media screen and (max-width: 640px) {
    .dataTables_length label::before,
    .dataTables_length label::after {
      content: '';
      display: none;
    }

    .dataTables_length label {
      color: transparent; /* hides text but keeps select visible */
    }

    .dataTables_length select {
          color: #000 !important; /* ensure dropdown text remains visible */
    }

    .dataTables_filter {
        display: inline-block;
        float: left;
        margin-top: 20px !important;
    }

    .dataTables_length {
        display: inline-block;
        float: right !important;
        width: 75px;  
    }

    .dashboard-intervals .btn-group a {
        padding: 8px;
        font-size: 12px;
    }
    .navbar-right > .li-icon > a {
        width: 33px;
        display: inline-block;
        float: left;
    }
    .navbar-right > .li-logout {
        width: 100%;
        display: flex;
        font-weight: bold;
    }
    label {
        margin-top: 5px;
    }
    .btn-refresh {
        padding: 5px;
        margin-top: 5px;
        width: 35px;
    }
    .modal-lg, .modal-xl-lg {
        width: 350px !important;
    }
    .ml-10 {
        margin-left: 5% !important;
    }

    .fav-profiles {
        width: 60%;
    }

    .position-symbol {
        width: 100%;
        float: left !important;
    }
    .position-profile {
        width: 80%;
        margin-top: 10px;
        float: left !important;
    }
    .position-refresh {
        margin-top: 9%;
    }

    .pnl-area .toggle-area {
        margin-right: 10px;
    }
    .pnl-heading {
        width: 100%;
    }
    .pnl-limit {
        width: 25% !important;
    }
    .pnl-duration {
        display: inline-block;
        float: left !important;
        width: 45%;
        margin-left: 4%;
    }
    .pnl-symbols {
        width: 100%;
        float: left !important;
    }
    .pnl-profiles {
        margin-top: 10px;
        width: 100%;
        float: left !important;
    }
    .pnl-screenshot-area {
        margin-top: 10px;
    }
    .pnl-top-btns-area {
        margin-right: 15px !important;
    }
    .pnl-top-btns-area button {
        margin-top: 2% !important;
        margin-right: 3% !important;
        padding: 4px 8px;
        text-align: center;
    }
    .pnl-top-btns-area button .fa {
        font-size: 12px;
    }

    .market_timezones div {
        width: 100%;
        margin-top: 10px;
    }

    .pnl_stats div {
        width: 49% !important;
    }

    .group-stats-heading {
        display: flex;
        padding-top: 10px;
        width: 100%;
    }

    .raw-stats-heading {
        display: flex;
        padding-top: 10px;
        width: 100%;
    }

    .group-stats-heading .btn , .raw-stats-heading .btn {
        margin-left: 10px;
    }

    .orders-symbol, .orders-filter {
        width: 50% !important;
        float: left !important;
        margin-top: 10px;
    }
    .orders-profiles {
        float: left !important;
        margin-top: 10px;
    }
    .orders-btn-area {
        margin-right: 15px;
    }
    .orders-btn {
        margin-top: 9%;
        margin-right: 15px;
    }


    .history-symbols {
        width: 100%;
    }
    .history-profiles {
        width: 85%;
        margin-top: 10px;
        float: left !important;
    }
    .history-btn {
        margin-top: 9%;
        margin-right: 15px;
    }
    .history-sumbox {
        width: 45%;
        margin: 2%;
    }

    .stats-interval, .stats-limit {
        width: 50%;
    }
    .stats-symbols, .stats-profiles {
        width: 100%;
        margin-top: 10px;
    }

    .altfins-indicator, .altfins-interval {
        width: 50%;
    }
    .altfins-symbols {
        margin-top: 10px;
        width: 100%;
    }

    .explorer-address, .explorer-limit, .explorer-chain {
        width: 100%;
        margin-top: 10px;
    }

    .wallets-area select {
        width: 70% !important;
    }


    .dataTables_wrapper {
        overflow-x: auto;
    }

   .dataTables_wrapper table {
        min-width: 600px; /* or whatever width fits your table */
        width: 100%;
        border-collapse: collapse;
   }

    .pnl-calculator-area .filters, .pnl-comparison-area .filters, .pnl-log-area .filters {
        width: 47%;
        margin-top: 10px;
        float: left;
        margin-bottom: 0px !important;
        margin-left: 1%;
        margin-right: 1%;
    }
    .insights-area .filters {
        display: inline-block;
        width: 50%;
    }
    .nav>li>a {
        padding: 7px 10px;
        font-size: 11px;
    }
    .w-15 {
        width: 50% !important;
    }
    .table>thead>tr>th {
        font-size: 10px;
    }
    .pnl-total-toggle {
        float: left;
        margin-left: 10px;
        margin-top: 10px;
    }
    .table-pnl-calculator th {
        font-size: 8px !important;
        padding: 4px;
    }
    .table-pnl-calculator td input[type=number] {
        padding: 5px;
        font-size: 10px;
        height: 25px;
    }
    .table-pnl-calculator td .toggle-area .label-switch {
        margin-top: -10px !important;
    }
    .skip-duration-area {
        width: 29%;
    }
    .strategy-options {
        width: 100%;
        margin-top: 10px;
    }
    .strategy-toggle .label-switch {
        margin-bottom: -7px;
    }
    .group-stats-filters {
        width: 30%;
    }
    .tooltip-bottom .custom-tooltip {
        top: 100%;
        left: 50%;
        transform: translateX(-35%);
        margin-top: 8px;
    }
    .bt-options {
        width: 100% !important;
        padding-right: 10px;
    }
    .bt-options button {
        margin-top: 10px;
    }
    .bt-top-row .col-md {
        width: 46% !important;
        display: inline-block;
        float: left !important;
    }
    .bt-top-row .col-md-1 {
        width: 50% !important;
        text-align: left;
    }
    .bt-input-row {
        margin-top: 10px;
    }
    .bt-input-row .col-md {
        width: 31% !important;
    }
    .bt-column {
        width: 30.5%;
        font-size: 10px;
    }
    .bt-stat-row div {
        width: 32%;
        padding: 5px;
        font-size: 10px;
        margin-top: 5px;
    }
}


@media (min-width: 992px) {
    .tester-dropdown:hover .dropdown-menu {
        display: block;
    }
    .tester-dropdown:hover > a {
        background-color: #f5f5f5;
    }
}